Powered by Blogger.

Java Virtual Machine (JVM)

A Java virtual machine is a software that is capable of executing Java bytecode. Code for the JVM is stored in .class or .jar files, each of which contains code for at most one public class. JVM enables the Java application to be platform independent. JVM is distributed along with a set of standard class libraries that implement the Java application programming interface (API). JVM mainly performs three tasks:

Loads Code The class loader loads all classes needed for the execution of a program.

Verifies Code The byte code verifier tests format of code fragment and checks code fragments for illegal code, which is code that forges pointers, violates access rights on objects, or attempts to change object type.

Execute Code Performed by the runtime interpreter.

The Java Runtime Environment(JRE) is an implementation of the Java Virtual Machine (JVM), which actually executes Java programs. The Java Development Kit (JDK) is the original Java development environment for Java programmers. The JDK consists of a library of standard classes and a collection of utilities for building, testing, and documenting Java programs.

0 comments:

Post a Comment