Friday, January 22, 2021

Difference between JDK, JRE, and JVM-AapKiApniSchool

 In this blog we will dicsuss "difference between jdk and jre". I will explain you what is the use of jdk jre jvm in details.



JDkJREJVMImage


JavaCodeFlow




JDK(Java Development Kit):

JDK is used to develop Java applications. It contain JRE and Other development tool Like JAVAC,interpreter/loader (Java).It take Source Code and compile the code. After compilation it convert the java source code into byte code which also known for .class file.

JRE(JAVA Runtime Environment):

JRE is used to run the java program. It can JVM and other library which required for running Java Program. JRE take byte code and convert into  machine language that is also known for binary code.
It physically exist.

JVM(Java Virtual Machine):

JVM is a specifications. It is like Interface where we define our rules. It's implementation is given by JRE.Whatever Java program you run using JRE or JDK goes into JVM and JVM is responsible for executing the java program line by line hence it is also known as interpreter.JVM physically doesn't exist.

1 comment:

Featured Post

Interface in java-AapKiApniSchool

Interface in java:  interface is a blueprint of class in java that is used to define contracts. It can contain static constant and abstract ...

Popular Posts