1.

What is the differences between Heap and Stack Memory in Java? Explain

Answer»
 HEAP spaceStack Memory
1.Used to allocate memoryUsed for EXECUTION of the thread
2.Instance variables are createdLOCAL variables are created
3.Contains Objects and REFERENCE variablesContains methods and local variables


Discussion

No Comment Found