The ‘Just-In-Time’ compiler compiles the code on a method-by-method basis when they are called. This code is then cached in memory for later use. An Interpreter compiles the code one line at a time and executes it. As a result, the JIT compilation is always faster than interpretation.
Asked In: Many Interviews |