JVM & runtime · interview question
What does the JVM's JIT compiler do?
Multiple choiceMedium
Answer and explanation
Correct answer
A. It compiles frequently executed bytecode into optimized native machine code at runtime.
Why
HotSpot starts by interpreting bytecode, profiles it, and compiles hot methods. That's why Java services "warm up".
Test yourself on JVM & runtime
A free test with instant, explained results. No account needed.