sun java virtual machine | microsoft java virtual machine | java virtual machine specification
The JVM (java virtual machine) is a platform independent engine use to run java application. Sometime it is called virtual machine which is capable of executing java bytecode. Or we can say that Java Virtual Machine forms a layer between the operating system and the java program. When Java Virtual Machine invoke with a particular class file, the Java Virtual Machine loads the file, goes through a verification process and execute the instruction in that class file.JVM for different platforms uses different technique to execute the bytecode. The major components of Java Virtual Machine are as follow:
- Class loader
- Execution engine
- JIT (Just In Time) compiler
- Primordial class loader: - Primordial class loader loads the Java API (application programming interface) classes required by the running java program.
- Class loader objects: - Class loader objects loads the classes of the java application program. An application can create class loaders at runtime for loading the classes of the application.
JIT compiler: - the JIT (Just In Time) compiler is used for compiling the bytecode into executable code. The Java Virtual Machine runs the Just In Time compiler code without interpreting because the Just In Time compiler code is in the machine code format. Running the Just In Time- compiled code is faster than running the interpreted code because it is compiled and does not require to be run, line after line.
No comments:
Post a Comment