Skip to content
Sharp

Garbage Collection · interview question

Why might a Java application experience increased garbage collection times during high traffic?

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

Correct answer

B. Increased object creation leads to more frequent GCs.

Why

During high traffic, a Java application may create more temporary objects, leading to more frequent garbage collections as the Young Generation quickly fills up, increasing the overall GC time.

Test yourself on Garbage Collection

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

Start free test
All Garbage Collection questions →