Eden Space (heap): The pool from which memory is nitially allocated for most objects. Survivor Space (heap): The pool containing objects that have survived the garbage collection of the Eden space. Tenured Generation (heap): The pool containing objects that have existed for some time in the survivor space. Permanent Generation (non-heap): The pool containing all the reflective data of the virtual machine itself, such as class and method objects. With Java VMs that use class data sharing, this generation is divided into read-only and read-write areas. Code Cache (non-heap): The Java VM also includes a code cache, containing memory that is used for compilation and storage of native code.
This comment has been removed by the author.
ReplyDeletestatic variables are initialized at the time of loading of class in the jvm and jvm is responsible for its initialization.
ReplyDeletehow many part of memory are divided by JVM.
Delete5
ReplyDeleteWhat are they ?
DeleteEden Space
DeleteSurvivor Space
Tenured Generation
Permanent Generation
Code Cache
Eden Space (heap): The pool from which memory is nitially allocated for most objects.
DeleteSurvivor Space (heap): The pool containing objects that have survived the garbage collection of the Eden space.
Tenured Generation (heap): The pool containing objects that have existed for some time in the survivor space.
Permanent Generation (non-heap): The pool containing all the reflective data of the virtual machine itself, such as class and method objects. With Java VMs that use class data sharing, this generation is divided into read-only and read-write areas.
Code Cache (non-heap): The Java VM also includes a code cache, containing memory that is used for compilation and storage of native code.