java class loading and JVM composition

Java class loading process:

1. Load

Read .class file

2. Links

a. verify the legitimacy of the class file verification b. preparing for a static amount of ready resources c. parsing parsing class structure

3. Initialize

Initialize resources, open up the memory space.

 

JVM consists of:

1. counter

2. JVM stack

3. heap

4. The method area

The constant pool

6. Local Stack

 

Guess you like

Origin www.cnblogs.com/wangyu19900123/p/12143824.html