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

Last Updated :
Discuss
Comments

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

Objects stored in Heap Memory are accessible across different methods

Heap Memory is automatically garbage collected when objects are no longer referenced

Memory in Heap is limited and needs to be manually managed

Objects stored in Heap Memory are shared among threads

Share your thoughts in the comments