Practice mode C#

Which generation of the .NET garbage collector holds newly allocated small objects?

Correct answer A. Generation 0

Explanation

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.