Saturday, March 8, 2014

JVM Method Area

1. Understand What is Method Area


https://www.artima.com/insidejvm/ed2/jvm5.html

2. View Example


http://www.youtube.com/watch?v=a5GzF2fSSCE

3. Advance

1. Using verbose command to under 

Step 1: Create the Java source file say 
public abstract class JVM1 implements A {

    static int a=7;
    final static int b=7;
   
    public static void main(String[] args) {
        // TODO Auto-generated method stub
System.out.println("Hi");    }
    void test(int g)
    {
        a=g;
    }
}


Step 2:  Compile the above file 'javac JVM1.java'

Step 3: Run the below command javap -verbose JVM1

All the Detail will be displayed about class file.

No comments:

Post a Comment