What is difference between JDK JRE and JVM

Munish Chandel | August 02, 2018 at 08:33 AM | 228 views


400
JRE is subset of JDK while JVM is an abstract computing machine
Java Virtual Machine (JVM)

It is an abstract computing machine that enables a computer to run a Java program. An instance of a JVM is an implementation running in a process that executes a computer program compiled into Java bytecode. JVM performs tasks like loading byte code, code verification, code execution, etc.

Java Runtime Environment (JRE)

It is a software package (a physical entity) that contains necessary artifacts required to run a Java program. It includes JVM implementation together with an implementation of Java Class Library (rt.jar). Hotspot is the JVM implementation for Oracle Java.

Java Development Kit (JDK)

It is a superset of a JRE and contains tools for Java programmers, e.g. javac compiler, jconsole, jheap, jps, jvisualvm etc.

Oracle releases server JRE also, that contains normal JRE along with few tools (e.g. javac compiler) that are required by Tomcat like servlet containers.



You may also be interested in..
Generic placeholder image
ebook PDF - Cracking Java Interviews v3.4 by Munish Chandel
You may also be interested in..
Generic placeholder image
ebook PDF - Cracking Spring Microservices Interviews for Java Developers

Similar Articles:
  1. Java 8 – HijrahDate, How to calculate the Ramadan date
  2. How to find if the Linked List contains any Cycle/Loop
  3. How will you calculate factorial of a large number in Java
  4. Generate Random Numbers in a range using Java 8
  5. What is difference between JDK JRE and JVM
  6. Difference between Comparable and Comparator in Java with Examples
  7. What will happen if we don't synchronize getters/accessors of a shared mutable object in multi-threaded applications

This website uses cookies to ensure you get the best experience on our website. more info