What is JIT compiler ?

  1. What is JIT compiler ?

    1. So java source code (.java) file is converted to a byte code (.class) file with the help of javac compiler

    2. Then jvm will convert this byte code into machine understandble code

    3. When JIT is enabled -> jvm analyze the method calls in .class files and compiles them to get more efficient and native code -> it ensures prioritized method calls are optimized.

    4. JVM will execute the optimized code directly instead of interpreting the code again -> and hence increasing the performance and speed of the execution.