Explain the JVM memory structure.
January 11, 2025
JVM memory is divided into:
Heap: Stores objects and class instances.
Method Area: Stores class structure (e.g., methods, constants).
Stack: Stores method-specific values like local variables and partial results.
Program Counter (PC): Tracks the address of the current instruction.
Native Method Stack: Supports native (non-Java) method execution.