Skip to content
Sharp

Java Threading · interview question

In which scenario is ExecutorService preferred over manually managing threads?

Multiple choiceEasychapter-15-curatedpremiumjava-threadingrace-conditions
Choose one answer
Answer and explanation

Correct answer

C. When managing a pool of threads for executing tasks.

Why

ExecutorService is preferred when you need to manage a pool of threads for executing tasks, as it provides a higher-level API for managing thread lifecycle, task scheduling, and resource optimization compared to manually managing threads.

Test yourself on Java Threading

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

Start free test
All Java Threading questions →