|
Stack and Heap
Hi,
The stack is the portion of memory where at run time ,when a method is invocked, memory is allocated for the local varaiables of the invocked method.
So we can see it as a dynamic memory because its allocated at runtime.
Heap is the portion of memory that is allocated at the begin of an applications and it remaines till the application terminates..so we can see it as a ststic memory.
Bye.
|