Skip to content
Sharp

Garbage Collection · interview question

Which JVM tool can you use to capture a heap dump for analysis?

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

Correct answer

D. Jmap

Why

jmap is a tool used to capture heap dumps, which are useful for analyzing memory usage and diagnosing issues like memory leaks.

Test yourself on Garbage Collection

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

Start free test
All Garbage Collection questions →