Java program compilation and execution steps
1. Java Compiler compiles the Java source code (.java file) into a binary format known as bytecode (.class file). Java bytecode is platform independent instruction set, which contains instructions (opcode) and parameter information.
2. Bytecode is translated by the Operating System specific Java Virtual Machine (JVM) into the platform specific machine code.
3. Class loader in JVM loads the binary representation of the classes into memory.
4. Execution engine in JVM executes the byte code and generates Operating System specific machine instructions. These machine instructions are executed directly by the central processing unit (CPU).
Questions
Explain the process of Java code compilation and execution?
What is bytecode?
What is the difference between bytecode and source code?
What is machine code?
What is the difference between bytecode and machine code?
What is JVM? Is it same or different for different Operating Systems? What are the major components of JVM?
What is the role of class loader in JVM?
What is the role of Execution Engine in JVM?
What are machine instructions?
Next Topics:
2 . Java program compilation and execution steps
3 . Java Data Types
4 . Java Object class
Our Trainings