Mind map
Stack and Heap
Map content
Stack and Heap
Stack
- Contains list of active methods in an OOP.
- Thread of Execution
- Methods get added (pushed) and removed (popped) from the stack, along with their local variables.
- Operation is handled by the garbage collector.
- Active Method N
- Local variables
- main
- Active Method 2
- Local Variables
- Active Method 1
- Local Variables
- Garbage Collector
- Items no longer referenced directly or indirectly by stack are removed from heap by GC.
- Temporary
Heap
- Objects
- Instance variables
- Persistent
- String pool
- Objects
Information
- Description
- Mind Map on Stack and Heap, created by karloski on 18/05/2015.
- Created by
- karloski
- Views
- 2
- Rating