235k views
2 votes
Why is a just-in-time compiler useful for executing java programs?

User Borisano
by
7.9k points

1 Answer

6 votes

Because the reference HotSpot JVM uses a JIT compiler. The runtime will track which parts of a program are causing slowdowns (the hot spots) and recompile them to native machine code. HOPE YOU LIKE THE ANSWER

User Iain Ward
by
8.6k points