KnowledgeBoat Logo

Computer Applications

What role does the Java Virtual Machine play in the compilation and interpretation process?

Java Intro

ICSE

14 Likes

Answer

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.

Answered By

8 Likes


Related Questions