Skip to content
Sharp

Performance Tuning · interview question

When might you prefer using G1GC over ZGC in a Java application?

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

Correct answer

A. When you need predictable pause times with moderate latency.

Why

G1GC is preferred for applications that require predictable pause times with moderate latency. It provides a balance between throughput and pause times, making it suitable for many enterprise applications.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →