Friday, 30 October 2020

JVM architecture

 

 

JVM  architecture:-

   If we start  learning  java , we  would want  to learn  full details of  how  JVM  really  functioning . Here  is  JVM  architecture .

 

JVM has various sub components internally .

1. Class loader sub-system :  JVM 's class  loader  sub - system  perform 3 tasks

    (a). It loads class file into memory 

    (b). It  verified  byte code  instructions 

     (c). It  allots  memory  required for  the program.

 

 

2. Run time  data area :  This  is  the memory  resource  used by JVM  and it  is divided  into  5 parts :-

  a.  Method area - Method area  stores class code  and  method code.

  b. Heap - Objects are created on heap.

  c.  Java stacks - Java stacks are the places                 where  the java  methods  are executed.A java stacks  contains  frames . On each  frame, a  separate  method is executed.

  d. Program counter registers - The program counter registers  store  memory  address of  the instruction  to be  executed  by  the  micro-processor.

 

 e. Native mathod stacks -  The native  method stacks are places  where  native  methods  ( for example, C  language  programs )  are  executed . Native  method is  a function , which  is written  in  another  language other than Java.

 

 

Native  method interface

 

Native method  library 

 

Execution  engine 

 

 

 

 

 


No comments:

Post a Comment

Student Marks Calculation app using java

      import javax.swing. *; import java.awt.event.ActionEvent ; import java.awt.event.ActionListener ; public class Student { private J...