Tell us something about JIT compiler.
682
18-Nov-2021
Mukul Goenka
18-Nov-20211.) First, the Java source code (.java) conversion to byte code (.class) occurs with the help of the (javac) compiler.
2.) Then, the .class files are loaded at run time by JVM and with the help of an interpreter, these are converted to machine understandable code.
3.) JIT compiler is a part of JVM. When the JIT compiler is enabled, the JVM analyzes the method calls in the .class files and compiles them to get more efficient and native code. It also ensures that the prioritized method calls are optimized.
4.) Once the above step is done, the JVM executes the optimized code directly instead of interpreting the code again. This increases the performance and speed of the execution.