Skip to content
Sharp

Memory Management · interview question

What does the 'jmap' tool in the context of Java memory management mainly do?

Multiple choiceMediumchapter-14-curatedpremiummemory-managementstack-vs-heap
Choose one answer
Answer and explanation

Correct answer

D. To analyze heap memory and generate heap dumps.

Why

The 'jmap' tool is primarily used for analyzing heap memory and generating heap dumps. It provides a snapshot of the memory usage by the heap, which can be invaluable for diagnosing memory leaks and understanding application memory footprint.

Test yourself on Memory Management

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

Start free test
All Memory Management questions →