Skip to content
Sharp

Performance Tuning · interview question

In the context of garbage collection, what is a 'young generation'?

Multiple choiceMediumchapter-14-curatedpremiumperformance-tuningstop-the-world-pauses
Choose one answer
Answer and explanation

Correct answer

B. A memory area for new objects

Why

The 'young generation' is a part of the heap where new objects are allocated. Objects in this area are expected to be short-lived, and the young generation is collected frequently through minor GCs.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →