|
- Bytecode is a highly optimized set of instructions designed to be executed by the Java runtime system, which is called the Java virtual Machine (JVM).
- When the source code is compiled, the Java compiler creates machine code called bytecode for a hypothetical machine called Java Virtual Machine.
- The JVM is supposed to execute the bytecode.
- This bytecode is then run through an interpreter on the actual hardware, which converts this bytecode into machine code, required for that particular hardware, and executes it.
|