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
9.5m questions
12.2m answers