Skip to content
Sharp

Garbage Collection · interview question

Which tool can you use to analyze heap dumps in Java?

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

Correct answer

C. Jmap

Why

The 'jmap' tool is used to generate heap dumps, which can be analyzed to understand memory usage and detect memory leaks.

Test yourself on Garbage Collection

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

Start free test
All Garbage Collection questions →