Q
What does a JIT (Just-In-Time) compiler do?
-
A
It checks syntax only, without generating any code
-
B
It compiles intermediate code (such as bytecode) into native machine code while the program is running
-
C
It compiles all source code to machine code before distribution
-
D
It converts machine code back into source code
Correct Answer:
B. It compiles intermediate code (such as bytecode) into native machine code while the program is running
Explanation:
JIT compilers (in the JVM or .NET CLR, for example) translate hot bytecode to native code at run time for speed.