Which generation of the .NET garbage collector holds newly allocated small objects?
Correct answer A. Generation 0
New small objects start in generation 0, which is collected most often because most objects die young. Objects that survive a collection are promoted to generation 1 and then generation 2, which holds long-lived data and is collected least often. Very large objects, by default 85,000 bytes or more, go to the large object heap, which is logically part of generation 2.
Answer checked How we write and check questions
Discussion