i

JAVA Complete Course

Execution Engine

As we mentioned already few times Java was created on the concept of WORE (write once, run everywhere) and JVM is taking main part to convert Java code to bytecode, which is the set of instructions to run the application. To improve the performance of JVM, Just in Time (JIT) compilers are interacting with them at runtime and compile appropriate bytecode sequences into native machine code. When using a JIT compiler, the hardware can execute the native code, as opposed to having the JVM interpret the same sequence of bytecode repeatedly and incurring the penalty of a relatively lengthy translation process. This is increasing the performance and decreasing overall execution time. JIT compilers are also running some of the common optimizations such as data analysis, elimination of common sub-expressions, reducing the memory accesses by register allocation and so on.