Difference between JDK, JRE and JVM

Difference between JDK, JRE and JVM:

JVM:

JVM(Java virtual machine) it is an abstract machine which doesn't exist physically. It provides the runtime environment in which Java bytecode can be executed.

This JVM are available for different hardware and software platform. These JVM, JRE and JDK are platform dependent because the configuration of each OS is different from each other.
It performs following main tasks:

  • Loads code
  • Verifies code
  • Execute code
  • Provides runtime environment

JRE:

JRE( Java runtime environment) it is the implementation of JVM which physically exists in machine. It contains set of library and other files that JVM used at runtime.

JDK:

JDK ( Java development kit) is a software development tool which is used to develop Java applications and applet. It contains JRE and development tools.
It has private Java virtual machine and other resources such as interpreter, compiler, archiver, a documentation generator which help to complete the Java application.

Comments

Post a Comment

Popular posts from this blog

PHP Login and Registration script

Multiple image upload to database and display from it

Java program to display diamond pattern