What are the divisions of the Memory Heap?
The memory heap is divided into three generations. Generation 0 – Used to store short-lived objects. Frequent Garbage Collection happens in this Generation. Generation 1 – Used for medium-lived objects. Generation 2 – Used for long-lived objects. In .NET, particularly in the context of the Common Language Runtime (CLR), memory management is primarily managed through … Read more