Skip to content
Sharp

Performance Tuning · interview question

In what way does G1GC attempt to predict and control pause times?

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

Correct answer

B. By prioritizing region collection based on garbage density.

Why

G1GC prioritizes regions with the most garbage (garbage density) for collection, allowing it to better predict and control pause times by focusing on areas that will yield the most memory recovery.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →