how many types of memory area are allocated by java virtual machine ?
Raj
Heap stack
6 types
Stack & heap
Heap & stack
· Class (Method) Area · Heap · Stack · Program Counter Register · Native Method Stack
1) Class loader: Class loader is used to load class files.2) Class (Method) Area: Class (Method) Area stores per-class structures such as the runtime constant pool, field and method data, the code for methods.3) Stack: In stack memory area all local variables stores and each thread has private JVM stack and it created at the same time as thread.4) Heap: It is the runtime data area in which objects are allocated.These are the main memory area.
1.stack 2.heap 3.class(method)