JIT vs Interpreters

Viewed 34321

I couldn't find the difference between JIT and Interpreters.

Jit is intermediary to Interpreters and Compilers. During runtime, it converts byte code to machine code ( JVM or Actual Machine ?) For the next time, it takes from the cache and runs Am I right?

Interpreters will directly execute bytecode without transforming it into machine code. Is that right?

How the real processor in our pc will understand the instruction.?

Please clear my doubts.

7 Answers

Interpreter: Interprets the bytecode if a method is called multiple times every time a new interpretation is required.

JIT: when a code is called multiple time JIT converts the bytecode in native code and executes it

Related