I have a question about JVM(Java Virtual Machine) and JIT(Just-in-Time). As far as I know JVM take as input a bytecode (from .class extension file) and interpret this bytecode. The questions are:
- When we say interpret, it's mean translation this bytecode to machine readable code(otherwise compiling)?
- So if JVM "compile" bytecode to machine readable code and JIT do basically the same thing (converting bytecode to machine readable code (compiling otherwise)), what the advantages in using JIT?
Thanks for answer.