user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

Question 20. What Are Generations And How Are They Used By The Garbage Collector?

user image

Abhishek Mishra

2 years ago

Generations are the division of objects on the managed heap used by the garbage collector. This mechanism allows the garbage collector to perform highly optimized garbage collection. The unreachable objects are placed in generation 0, the reachable objects are placed in generation 1, and the objects that survive the collection process are promoted to higher generations

Recent Doubts

Close [x]