Home Segments Top Top Previous Next

5: Mainline

You might think that byte-code interpretation must mean slow execution, relative to, say, C or C++ programs that are compiled directly into the native instruction set of a particular machine.

Fortunately, however, a full-capability Java virtual machine can translate byte code into the native instruction set of the computer through a process called just-in-time compilation. Accordingly, Java programs can run nearly as fast as programs written in older, less portable programming languages.