1 |
Java interpreter performs on-the-fly runtime execution of the Java bytecodes which can result in a satisfactory performance.
|
2 |
There are 3 ways of executing Java
|
3 |
Interpreter through a Browser -- Java approximately 50 times slower than C
|
4 |
"Just-in-time" (JIT) Interpreter on a browser -- Java approximately 4 times slower than C
-
This is essentially an on the fly compiler as a JIT Interpreter saves code for repeated sections to provide compiled (without complex optimizations) code efficiency after first execution
|
5 |
Compiler for generating native machine code out of Java or Java bytecodes, viewed as intermediate compiler form
-
One expects that native compilers will be comparable to C or Fortran in performance
-
As Java has no pointers, compiled code should be faster in many cases than C or C++
|