ICSE Class 9 Computer Applications Question 4 of 30

Introduction to Java — Question 4

Back to all questions
4
Question

Question 4

Describe the Java compilation process with a suitable diagram.

Answer

In Java compilation process, the source code of a Java program is compiled to an intermediate binary code called the Bytecode. This Bytecode cannot be directly executed by the machine. It is understood by a virtual machine known as Java Virtual Machine or JVM. JVM contains a Java interpreter which converts the Bytecode into machine code of the target computer. JVM is platform specific i.e. each platform has its own JVM. But once the proper JVM is installed on the machine, it can run any Java Bytecode program. The below diagram illustrates this:

ICSE Logix class 10 solutions illustrating Java Compilation Process