Skip to content
Sharp

Garbage Collection · interview question

Why might the ZGC be preferred over G1GC for applications requiring ultra-low latency?

Multiple choiceHardchapter-14-curatedpremiumgarbage-collectiongenerational-gc
Choose one answer
Answer and explanation

Correct answer

C. It minimizes pause times by concurrent garbage collection activities.

Why

ZGC is designed to minimize pause times by performing most of its garbage collection work concurrently with application threads, making it ideal for applications where low-latency is critical.

Test yourself on Garbage Collection

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

Start free test
All Garbage Collection questions →