JVM, JRE, JDK 2

JVM (Java Virtual Machine) is an abstract machine.It is a specification that  provides runtime environment in which java bytecode can be executed. JVMs are available for many hardware and software platforms (i.e. JVM is plateform dependent).
 
The JVM performs four main tasks:
  • Loads code
  • Verifies code
  • Executes code
  • Provides runtime environment
 
JRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It is the implementation of JVM.It  physically exists.It contains set of libraries + other files that JVM uses at runtime.
 
JDK is an acronym for Java Development Kit.It  physically exists.It contains JRE + development tools.
 
 

javapoint

Rate this post

2 thoughts on “JVM, JRE, JDK

  1. Reply John Stalling Jul 23,2013 1:39 pm

    when I ask the difference between JRE and JVM in an interview, people do get confused as both of them are associated with the run time enviornment. My advice to freshers is first to understand the differences between JRE, JVM, JDK and JIT and then move on to PATH, CLASSPATH etc.

  2. Reply Anurag Singh Jan 30,2018 2:17 pm

    Here you explained nicely that what is differences between jvm and jre and jdk in java.

    this post is really useful.
    thanks

Leave a Reply