Young vs Old Generation — Minor vs Major GC
Reviewed by Gurusankar M. · Updated Aug 24, 2026
Short Answer
The weak generational hypothesis: most objects die young. So the heap splits into Young (Eden + 2 Survivors) collected often and cheaply (minor GC), and Old (tenured) collected rarely (major/full GC). Survivors that age past a threshold are promoted to Old.
On this page
Concept Made Simple
Coffee Chat Question
“Why is the heap split into young and old generations, and what's a minor vs major GC?”
Remember It Faster
Mind Map Answer
- Eden
- new objects allocate here
- Survivor S0/S1
- survive a minor GC, age++
- Old/Tenured
- long-lived, major/full GC
- Promotion
- age ≥ threshold → Old
Think Beyond the Expected
What If?
Allocation rate is huge and minor GCs are frequent — is that bad?
Not necessarily. Minor GCs are cheap because most young objects are already dead (copying only survivors). Frequent minor GC with short pauses is fine; the problem is when objects get prematurely promoted to Old, causing expensive major GCs.
Real World
Generational GC is why allocating lots of short-lived objects (per-request DTOs) is usually cheap — they die in Eden and never reach Old gen. Premature promotion (from undersized young gen) is a classic tuning issue.
Interviewer's Expectation
Keywords they're listening for:
- weak generational hypothesis
- Eden/Survivor/Old
- minor vs major/full GC
- promotion by age
- copying collector for young
Common Mistakes
- Assuming frequent minor GC is a problem
- Undersized young gen causing premature promotion
- Confusing major GC with full GC
Best Practices
- Size young gen to keep short-lived objects out of Old
- Watch promotion rate, not just GC count
- Profile allocation before tuning
Follow-up Questions
- What is premature promotion and how do you fix it?
- How does the survivor-space tenuring threshold work?
- Why is a minor GC a 'copying' collection?
Continue Learning with AI
Take this question deeper with your favourite AI assistant. Pick a depth, copy the prompt, or open it directly — AI is your learning companion, not a shortcut.
Plain-language foundations
I'm preparing for a software engineering interview and want to understand this from scratch, as a beginner. Topic: Garbage Collection (JVM) Interview question: "Why is the heap split into young and old generations, and what's a minor vs major GC?" Please: 1. Explain the core idea in simple, plain language, using an everyday analogy. 2. Define any technical terms you use. 3. Walk through one small, concrete example. 4. Finish with a single sentence I can easily remember. Keep the tone friendly and assume I'm new to this topic.
Was this answer helpful?
Affiliate links
Tools for Your Developer Workspace
Equipment for a comfortable, productive setup.
As an Amazon Associate I earn from qualifying purchases.
- MonitorView on Amazon : BenQ EW2790U 27-inch Monitor (opens in a new tab)
BenQ EW2790U 27-inch Monitor
- LaptopView on Amazon : Acer Aspire One Laptop (opens in a new tab)
Acer Aspire One Laptop
- Office ChairView on Amazon : Wakefit Gravita Ergonomic Office Chair (opens in a new tab)
Wakefit Gravita Ergonomic Office Chair