What is the difference between JDK and JRE?

Java Development Kit (JDK) is the most widely used Java Software Development Kit. Java Runtime Environment (JRE) is an implementation of the Java Virtual Machine which executes Java programs.

What is JRE?
The Java virtual machine is used to compile the Java program which converts source code to byte code (a readable form of machine language). This byte code varies from one platform to platform.
Here JRE is used as a interpreter of byte code into machine code. So JRE is a interpreter for the Java program. 

What is JDK?
JDK contains software development tools which are used to compile and run the Java program.
Both JDK and JRE contains the JVM.
JRE contains the runtime environment such as JVM and other Java classes (AWT, SWING), but does not contain any development tools such as a compiler or a debugger.

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email