Skip to content
Discussion options

You must be logged in to vote

⚙️ Just-In-Time (JIT) Compiler in Java

JIT stands for Just-in-Time compiler. It is a part of the Java Runtime Environment (JRE) and is used to improve the performance of Java applications during runtime.


🔁 Step-by-Step Working of JIT:

  1. Compilation Phase:

    • The Java source code is compiled by the javac compiler to generate bytecode (.class files).
  2. Execution via JVM:

    • The generated bytecode is passed on to the Java Virtual Machine (JVM) for execution.
  3. JIT Integration:

    • The JIT compiler, which is a component of the JVM, converts bytecode into native machine code at runtime.
  4. Activation Condition:

    • Although JIT is enabled by default, it becomes active only when a method is invoked fr…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by HARSHITH-MV
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants