bytecode interpreter

The part of the JVM that executes bytecode one instruction at a time, which needs no preparation but runs slower than compiled code.

In more detail

Every method starts out interpreted, so a program can begin immediately. While interpreting, the JVM gathers statistics about which methods are hot, and hands those to the JIT compiler. Cold code that runs rarely may stay interpreted for the whole life of the program.

Related terms

Taught in

References