What are Differences between JDK, JRE and JVM

Differences between JDK, JRE and JVM  

Java Development Kit
Java Runtime environment
java virtual machine
JDK is required for java development.

JRE provides environment for running/executing programs.

JVM is the virtual machine on which java code executes.

JVM is responsible for converting byte code into machine specific code.
You need to have JDK in your system for >
  • developing,
  • compiling and
  • running Java programs.

JDK contains-
  • JRE and
  • JVM
You need to have JRE in your system for >
  • running Java programs.

JRE contains-
  • JVM,
  • class libraries and
  • other supporting libraries.
In short  JDK = JRE + JVM
In short  JRE = JVM + class libraries (rt.jar)  + other libraries (if any).

Must read for you :