Skip to content
Sharp

JVM Architecture · interview question

Which JVM diagnostic tool can be used to obtain a thread dump?

Multiple choiceMediumchapter-14-curatedpremiumjvm-architecturemetaspace
Choose one answer
Answer and explanation

Correct answer

D. Jstack

Why

jstack is a diagnostic tool used to obtain a thread dump of a running Java application. It provides information on the active threads and their stack traces, which is useful for analyzing deadlocks and performance issues.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →