JVM (part 2) ~ Inside of a JVM
Chapter 2
Context of JVM
JVM includes 3 of components. it loading, storing and executing the data. in that loading process it use class loader to load the class files to the jvm. and the memory area use to store the data and finally execution engine use to execute it. ok now we take one by one and see how it works.
3 Parts of JVM
- Class Loader
- Memory Area
- Execution Engine
Memory Area
Memory area build with 5 parts. Method area, Heap area, Stack, Pc registers and Native method area. ok now we take method area, it is that area which accept the data from class loader and it provides object data to the Heap area. method area and the heap area create an only one per jvm instance.

Every methods, informations, variables are holding at stack it creates one frame for one method. methods need informations to proceed, so pc registers and native method area helps to hold the informations that methods needed. every threads informations are in the pc registers but some thread’s methods use the native method informations. that kind of threads informations are not in the pc registers.
