What is the heap in Java?
January 22, 2025
The heap is used to store objects and class-level variables. It is divided into Young Generation, Old Generation, and sometimes Permanent Generation.
The heap is used to store objects and class-level variables. It is divided into Young Generation, Old Generation, and sometimes Permanent Generation.