Advanced
C#
Q60 / 100
What is the .NET runtime's GC generational model?
Correct! Well done.
Incorrect.
The correct answer is B) Objects are placed in generation 0, 1, or 2. Short-lived objects stay in gen 0; survivors are promoted. Gen 2 is collected least frequently
B
Correct Answer
Objects are placed in generation 0, 1, or 2. Short-lived objects stay in gen 0; survivors are promoted. Gen 2 is collected least frequently
Explanation
Gen 0 collections are fast and frequent. Objects that survive are promoted to Gen 1, then Gen 2. Gen 2 (full GC) is expensive and should be infrequent.
Progress
60/100