In Java, what is true about Heap Memory?

Last Updated :
Discuss
Comments

In Java, what is true about Heap Memory?

Heap Memory stores method calls and references to variables

Heap Memory is where instance objects are created and stored

Heap Memory is automatically deallocated when methods return


Heap Memory is used for storing thread-related information

Share your thoughts in the comments