Skip to content
Sharp

Memory Management · interview question

In a multi-threaded Java application, where do the different threads store their method call frames?

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

Correct answer

B. On separate stacks.

Why

Each thread in Java has its own stack where it stores its method call frames. This isolation allows threads to execute independently without interfering with each other's execution context.

Test yourself on Memory Management

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

Start free test
All Memory Management questions →