Skip to content
Sharp

Java Threading · interview question

What happens to tasks submitted to an ExecutorService after shutdown() is called?

Multiple choiceEasychapter-15-curatedpremiumjava-threadingexecutorservice
Choose one answer
Answer and explanation

Correct answer

C. They are executed if already started

Why

After shutdown() is called, the ExecutorService stops accepting new tasks but allows previously submitted tasks to complete. This ensures that tasks that have already started can finish gracefully.

Test yourself on Java Threading

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

Start free test
All Java Threading questions →