Skip to content
Sharp

Garbage Collection · interview question

In Java, what is a common cause for increased full GC frequency during high traffic periods?

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

Correct answer

D. Increased object creation leading to rapid Old Generation filling.

Why

During high traffic, the increased rate of object creation can lead to more objects surviving Minor GCs and getting promoted to the Old Generation, thus filling it up faster and triggering more frequent full GCs.

Test yourself on Garbage Collection

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

Start free test
All Garbage Collection questions →