Skip to content
Sharp

Performance Tuning · interview question

Why do teams use ZGC over G1GC in applications with large heaps in production code?

Multiple choiceHardchapter-14-curatedpremiumperformance-tuningoutofmemoryerrors
Choose one answer
Answer and explanation

Correct answer

A. Near-zero pause times.

Why

ZGC is designed to provide near-zero pause times, even on very large heaps. This makes it particularly advantageous for applications where minimizing latency is critical, as it allows the application to continue processing with minimal disruption.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →