What is the difference between the JVM, JRE, and JDK?
JVM | JRE | JDK |
---|---|---|
This is the heart of the programming language, Java. | JRE is used for running all the programs of Java. | It is used for the purpose of development. |
It renders platform independence. | JRE contains JVM. | JDK also contains JVM. |
It provides the core functions of Java. | JVM is implemented by JRE. It provides the platform to execute the Java programs. | It is a core component of the programming language, Java. |
It is customizable. | JRE does not possess any sort of development tools. | It is a platform-specific type of software. |
It creates the programs of type- write-once-run-anywhere. | JRE is mandatory to run any program of Java. | JDK is a superset of JRE as it contains JRE in it. |
BY Best Interview Question ON 19 Dec 2019