Java Virtual Machine(JVM)
Java Virtual Machine (JVM) is a implementation of a machine that executes programs like a physical machine.
WORA (Write Once Run Anywhere), JVM runs on all kinds of hardware to execute the Java Bytecode without changing the Java execution code.
Features of JVM are :
- By primitive data type : " java virtual machine (JVM) defines the primitive data type to maintain its compatibility and guarantee platform independence".
- based on stack machine :most popular computer architectures such as Intel( x86) Architecture and ARM Architecture run based on a register. However, JVM runs based on a stack.
- Order network byte: Java class file uses network byte order to maintain platform independence between the little endian used by Intel( x86 Architecture) and the big endian used by the RISC Series Architecture " a fixed byte order must be kept. Therefore, JVM uses the network byte order". (which is used for network transfer).
- Symbolic : All types (class and interface) except for primitive data types are referred to through symbolic reference- instead of through explicit (memory) address based reference.
- Garbage collection(gc): A class instance is explicitly created by the "user code" and automatically destroyed by "garbage collection".
No comments:
Post a Comment