Java Virtual machine or JVM

0
Share

What is JVM ?

  • Java virtual machine is an abstract machine or a specification which provides an environment for execution of the byte code.
  • JVM can perform the following task such as :-
  • Loading the byte code.
  • Verifying the byte code.
  • Executing the byte code.
  • The internal structure of the JVM is –

The JVM can classified different parts like-Class Loader , Memory Area and Execution Engine.

Class Loader

  • It is a part of JVM which loads the java program or java byte codes in the memory.

Memory Area

JVM has different Memory area like – Class area, Heap area, Stack area, Pc Register, and Native method stack area.

Class Area

The Class area is used to store the detail information of data members and member methods.

Heap Area

  • This memory is used to allocate the object which as created during the time of execution.
  • In other word the heap area is used to allocate the object during the time of execution.

Stack Area

  • The stack area is used to store all the local variables which are used in the program & also store the details information about the invocation of the method.
  • It means when a method is invoked a frame is created in stack area & after invocation a flame is removed from the stack area.

Pc Register

It is an another memory which stores the address of JVM instruction

Execution Engine

  • It is another part of java virtual machine, which contain the java interpreter for converting the byte code into machine executable code according to the local machine.

Read more Post

  • What are the List of CSS3 New Features ?
    CSS3 is the latest version of the normal CSS . CSS3 adds several new styling features and improvements to enhance the web presentation capabilities. Text Effect in...
  • CSS Basic Property
    What is CSS ? CSS stands for Cascading Style Sheets. CSS basically used in designing the web tags & pages. CSS is the most popular used...
  • Java Program to swap two number use 3rd variable
    In this program, you’ll learn to Program to swap 2 number with 3rd variable in Java. After write the code, the final output is displayed on...
  • Java program to multiply two floating point number
    In this program, you’ll learn to Program to multiply two floating point number in Java. After write the code, the final output is displayed on the...
  • Java Program to find the ASCII value of a character
    In this program, you’ll learn to Program to find the ASCII value of a character in Java. After write the code, the final output is displayed...
  • Java Program to calculate quotient & reminder
    In this program, you’ll learn to Given Number is even or odd in Java. After write the code, the final output is displayed on the screen....
%d bloggers like this: