What is difference between JDK JRE and JVM

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

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.

Buy DRM Free PDF for Complete Collection of Interview Questions
Generic placeholder image
ebook PDF - Cracking Java Interviews v3.4 by Munish Chandel

240 real Java interview questions on core Java, concurrency, algorithms, design & data structures, spring, hibernate for Investment Bank, Healthcare IT, product and service based companies, Author : Munish Chandel, Price: 250, Type: PDF

Free Email Updates
Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

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

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