Skip to content
Sharp

Performance Tuning · interview question

Which of the following describes a major advantage of using ZGC over G1GC?

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

Correct answer

A. ZGC performs concurrent compaction to avoid 'Stop-The-World' pauses.

Why

ZGC's major advantage is its ability to perform concurrent compaction, which means it can relocate objects without requiring significant 'Stop-The-World' pauses, unlike G1GC which needs such pauses for compaction.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →