Skip to content
Sharp

JVM Architecture · interview question

Which diagnostic tool would you use to analyze thread activity during a JVM hang?

Multiple choiceHardchapter-14-curatedpremiumjvm-architectureclass-loading
Choose one answer
Answer and explanation

Correct answer

A. Jstack

Why

jstack is used to generate thread dumps, which can help analyze thread activity and determine the cause of a JVM hang by showing what each thread is doing at the time of the dump.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →