JVM vs JRE vs JDK Differences

J_Learn
2 min readSep 9, 2022

JVM (Java Virtual Machine)

The JVM makes an isolated area on a host machine, much like virtual machines. Regardless of the machine’s platform or operating system, Java programs can be run in this space.

Java is a combination of both compiled and interpreted technologies. The C/C++ compiler converts the code into machine code, but the java compiler converts the code into Java bytecode.

What is Java Bytecode?

It is a compiled object code of java program and JVM can understand the bytecode. After compilation create .class file is the bytecode. The .class file can be executed by a JVM on any machine. This is the java interpretation platform independence.

JRE (Java Runtime Environment)

JRE

JRE contains JVM and Set of Libraries. It is the implementation of the JVM. JRE is the minimum required to run any java code. JRE contains a set of libraries used by the JVM runtime. JRE is platform dependent as it contains the platform dependent files which are used to create JVM in the desired OS/ environment.

JDK (Java Development Kit)

JDK contains of JRE and Development Tools. According to above description already knew JRE. Development tools contain Debugger, Compiler and Javadoc. Therefore, The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java platform.

Summary

--

--