Which of the following statements is true for heap storage?

S1: The heap is the portion of the store that is used for data that lives indefinitely, or until the program explicitly deletes it. 

S2: The heap is an area of memory that allows objects or other data elements to obtain storage when they are created and to return that storage when they are invalidated.  

1
Only S1
2
Only S2
3
Both S1 and S2
4
Neither S1 nor S2

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation