❮ Previous Next ❯

JVM (Java Virtual Machine)

In general we can say JVM is a program which takes byte code(.class file[the compilation of .java file]) and convert into machine instruction then providing an execution engine that is JAVA interpreter named as java which executes source code line by line.

Now we will discuss JVM in detail.

Assume that we have a java program(.java file). the java compiler javac compiles and generates .class file which is called as byte code. This byte code is the input of JVM. That means JVM takes .class file, then load it and execute it.

JVM consists 3 modules, such as:

  1. Class Loader Subsystem
  2. Memory area
  3. Execution engine
jvm

Class Loader Subsystem:

Then class loader subsystem communicate with various memory area inside JVM.

Memory Area:


There are 5 memory areas available inside JVM, such as method area, heap area, stack area, PC register, native method stack area.


Note :

The data which is stored in method area and heap area is not thread safe where as the data stored in stack area and PC registers are thread safe.

Execution Engine:

❮ Previous Next ❯

Follow Us




  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved