The JVM divided the memory into following sections.
This division of memory is required for its effective management.
|
The code section contains your bytecode.
The Stack section of memory contains methods (be called), local variables.
The Heap section contains Objects and their Instance Variables.
The Static section contains Static data/methods.
Of all of the above 4 sections, you need to understand the allocation of memory in Stack & Heap the most, since it will affect your programming efforts
Points to Remember:
No comments:
Post a Comment