Which of the following statements is true about Heap Memory in Java?

Last Updated :
Discuss
Comments

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


Share your thoughts in the comments