Skip to content
Sharp

Performance Tuning · interview question

Which garbage collector attempts to achieve predictable pause times by dividing the heap into regions and collecting them incrementally?

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

Correct answer

A. G1GC

Why

G1GC (Garbage-First Garbage Collector) divides the heap into regions and aims for predictable pause times by incrementally collecting these regions. It is designed to minimize pause durations and provide more consistent performance.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →