Programming Languages Java Subjective
Sep 24, 2025

Explain JIT compilation in Java.

Detailed Explanation
JIT (Just-In-Time) compiler compiles bytecode to native machine code at runtime for frequently executed code (hot spots). HotSpot JVM uses profiling to identify hot methods, then compiles them for better performance. C1 compiler for quick compilation, C2 compiler for aggressive optimization. Tiered compilation uses both.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback