Friday, January 6, 2017

Difference Between JDK,JRE,JVM and JIT in Java

In this page we will understand and learn about JDK,JRE,JVM and JIT in java programming Language and also learn difference between them. As a java beginner get confused about these terminologies, you need not worry this is the place you can remove your confusion about this topic here.      
JDK :  

JDK stands for Java Development Kit.It is a software component  that is used to develop java based applications. JDK includes the  JRE ,set of API classes, java compiler ,webstart and additional files needed to  write java applets and applications.It contains JRE + development tools


JRE:

It stand for Java Runtime Environment. JRE is implementation of the JVM which actually exectues Java Programs.It includes the JVM, core libraries and other additional components to run applications and applets written in java.



Difference Between JDK and JRE:


JVM:

Java Virtual Machine is a program that runs pre compiled Java programs, which mean JVM executes .class files (byte-code) and produces output.The JVM is written for each platform supported by Java included in the Java Runtime Environment(JRE).

JIT:

  • It stands for Just-In -Time compiler
  • It is a component of JRE
  • It improves the performance of Java applications by compiling bytecodes to native machine code at run time.
  • At run time, the JVM loads the class files, determines the semantics of each individual bytecode, and performs the appropriate computation
  • In this process, the JIT compiler helps improve the performance of Java programs by   compiling bytecodes into native machine code at run time.
  • The JIT compiler compiles the bytecodes of that method into native machine code,compiling it "Just In Time" to run
Let me know your comments on this post and share this post to your friends and keep follow me for latest updates.

No comments:

Post a Comment