ICSE Class 10 Computer Applications
Question 11 of 15
Introduction to Java — Question 12
Back to all questions 12
Question Question 12
What role does the Java Virtual Machine play in the compilation and interpretation process?
Java Virtual Machine or JVM is a virtual machine that runs Java programs. It takes the compiled Bytecode as input, converts it into machine code with the help of the Java interpreter. Selected portions of the Bytecode are also compiled by JVM using the Just-In-Time (JIT) compiler for performance. This machine code generated by JVM is then executed by the processor. So JVM along with Bytecode gives Java its "Write once, run anywhere" capabilities.