Which of the following statements is true about Heap Memory in Java?
Heap Memory is shared by all threads
Heap Memory is only used by local methods
Objects in Heap Memory are automatically deallocated when the method ends
Heap Memory is used to store static variables
This question is part of this quiz :
Java Memory Allocation