MY mENU


Thursday 22 March 2012

What is the difference between the Heap and the Stack?

The main difference b/n the Heap and the Stack are given below:

- In stack we create object temporary where programmer used to reserve allocation.'
- stack not have automatic garbage collection where as heap have automatic garbage collection.

No comments:

Post a Comment