Skip to content
Sharp

Performance Tuning · interview question

In the context of generational garbage collection, what is the primary role of the 'Old' generation?

Multiple choiceMediumchapter-14-curatedpremiumperformance-tuningthread-dumps
Choose one answer
Answer and explanation

Correct answer

A. To store long-lived objects

Why

The 'Old' generation in the JVM is designed to store objects that have survived multiple cycles of garbage collection in the 'Young' generation, indicating they are long-lived.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →