Skip to content
Sharp

Garbage Collection · interview question

Which of the following best describes the Young Generation in Java's memory model?

Multiple choiceMediumchapter-14-curatedpremiumgarbage-collectiongenerational-gc
Choose one answer
Answer and explanation

Correct answer

C. A region for short-lived objects.

Why

The Young Generation is where new objects are allocated and is optimized for objects that are short-lived. It is subject to frequent garbage collections, known as Minor GCs.

Test yourself on Garbage Collection

A free test with instant, explained results. No account needed.

Start free test
All Garbage Collection questions →