Java Features—High Performance
Java interpreter performs on-the-fly runtime execution of the Java bytecodes which results typically in a satisfactory performance.
- Initial software was often 100 times slower than C
- Performance is improved in new "just-in-time" JVMs, which compile methods after some number of executions, and save machine code to give compiled-code efficiency thereafter.
Support for generating native machine code out of Java bytecodes also exists (e.g. TowerJ).
The performance of the machine code, generated from Java bytecodes, may be comparable to that offered by typical C/C++ compilers on the same platform.