You are on page 1of 1

JIT compiler reduces the execution time(increases the speed of execution) and then

by providing high performance (improves the performance)

JIT Compiler (just in time compiler).


The java code will be executed by both interpreter and JIT compiler simultaneously
which will reduce the execution time and them by providing high performance. The
code that is executed by JIT compiler is called as HOTSPOTS (company).

Just-in-time Compiler (JIT)


JIT is part of JVM that optimizes byte code to machine specific language
compilation by compiling similar byte codes at the same time, hence reducing
overall time taken for the compilation of byte code to machine specific language.

JIT compiler:- it is a component of JRE that improves the performance of the java
applications at runtime. It helps to improve the performance of java programs by
compiling bytecodes into native machine code at runtime.

HOW JIT WORKS :-


Java programs using a compiler (javac) for converting java source code (.java
files) to java bytecode(.class files). once this is done. JVM loads the .class
files at runtime and converts them to a machine understable code using an
interpreter.

JIT is a feature of JVM which when enabled makes jvm analyze the method calls in
bytecode and compiles them to more native and efficient code.

At this point of time JIT optimizes the priortized method calls. Once these method
calls are compiled , the JVM then executes this optimized code instead of
interpreting it. Ideally the efficiency of the running object will overcome the
inefficiencies of recompiling the program everytime it runs.

While running java programs interpreter inside JVM will run them slowly. To
increase the speed of java program a compiler is created inside the JVM which is
called JIT compiler . The aim of jit compiler is to improve the performance of the
java program

You might also like