JVM is called as Java Virtual Machine or an abstract machine. It is called a virtual machine because it doesn't physically exist. It is a specification that provides a runtime environment in which Java bytecode can be executed.
A Java virtual machine is a virtual machine that enables a computer to run Java programs as well as programs written in other languages that are also compiled to Java bytecode.
Java applications are called Write Once Run Anywhere. This means a programmer can develop Java code on one system and can expect it to run on any other Java-enabled system without any adjustment. This is all possible because of JVM.
JVM architecture
JVM architecture in Java contains classloader, memory area, execution engine etc as belows.
- ClassLoader
- Method Area
- Heap
- JVM language Stacks
- PC Registers
- Native Method Stacks
- Execution Engine
- Native Method interface
- Native Method Libraries
Software Code Compilation & Execution process
We need the following to write and execute a software program.
- Editor
- Compiler
- Linker
- Loader
- Execution
Comments