You are here: Home / Topics / What is JIT in Java?

What is JIT in Java?

Filed under: Java Interview Questions on 2024-10-25 06:53:17

JIT stands for (Just-in-Time) compiler is a part of JRE(Java Runtime Environment), it is used for better performance of the Java applications during run-time. The use of JIT is mentioned in step by step process mentioned below:

  1. Source code is compiled with javac to form bytecode
  2. Bytecode is further passed on to JVM 
  3. JIT is a part of JVM, JIT is responsible for compiling bytecode into native machine code at run time.
  4. The JIT compiler is enabled throughout, while it gets activated when a method is invoked. For a compiled method, the JVM directly calls the compiled code, instead of interpreting it.
  5. As JVM calls the compiled code that increases the performance and speed of the execution.

About Author:
R
Ravi Chauhan     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.