Difference between JDK, JRE and JVM
1 min readFeb 6, 2020
We must understand the differences between JDK, JRE, and JVM
JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent.
JDK -it is a platform dependent.(Java Development kit)
The JDK is a super set of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.
JVM -it is also platform dependent(Java Virtual machine)
JVM is responsible for converting Byte code to the machine specific code.and provides core java functions like memory management, garbage collection, security etc
JRE- it is a platform dependent.(Java Run time environment )
If you want to execute any java program, you should have JRE installed but we don’t need JDK for running any java program.
Why Java is platform independent?
Because if you have .class file then you can run anywhere (once develop run anywhere )