javacodex.com
Java Examples
Java Examples
memu home questions

What is the difference between JRE, JVM and JDK?

Java Runtime Environment (JRE)

  • It is an implementation of the Java Virtual Machine which actually executes Java programs.
  • Java Runtime Environment is a plug-in needed for running java programs.
  • The JRE is smaller than the JDK so it needs less Disk space.
  • It includes the JVM , Core libraries and other additional components to run applications and applets written in Java.

Java Development Kit (JDK)

  • It is a bundle of software that you can use to develop Java based applications.
  • Java Development Kit is needed for developing java applications.
  • The JDK needs more Disk space as it contains the JRE along with various development tools.
  • It includes the JRE, set of API classes, Java compiler, Webstart and additional files needed to write Java applets and applications.

Java Virtual Machine (JVM)

  • A Java virtual machine (JVM) is an abstract computing machine that enables a computer to run a Java program.
  • There are three notions of the JVM:
    • specification
    • implementation
    • instance
  • The specification is a document that formally describes what is required of a JVM implementation.

Questions answered by this page:

What is Java Development Kit (JDK)? What is Java Runtime Environment (JRE)? What is Java virtual machine (JVM)? What is the difference between JDK, JRE and JDK?




Contact: javacodex@yahoo.com