Difference Between JDK, JRE And JVM In Java
What are JDK, JRE and JVM?
JDK
JDK stands for Java development kit. It physically exists. It contains all the development tools, which we use in Java such as compilers and debuggers etc. and it also contains everything, which is in the JRE.
JRE
JRE stands for Java runtime environment. It physically exists. It provides runtime environment and contains Java libraries, JVM (Java virtual machine and other files which are used in Java).
JVM
JVM stands for Java virtual machine. It does not physically exist because it is a virtual machine in Java and it is basically used to run the Java bytecode. Since it does not understand the source code and when the compiler changes the source code into bytecode .This time, it’s used to run bytecode and this bytecode is portable. We can run the bytecode in any platform and that’s why, Java is called as an independent platform or independent language.
Summary
Thus, we learnt, JDK stands for Java development kit, JRE stands for Java runtime environment and JVM stands for Java virtual machine in Java.