What is the difference between a heap and a stack?

Question:What is the difference between a heap and a stack?

1.The stack contains stored value types; the heap contains stored reference types.

2.The heap is stored value types; the stack is stored reference types.

3.The heap is stored object types; the stack is stored class types.

4.The stack is stored object types; the heap is stored class types.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!