Skip to content
Sharp

Java Threading · interview question

How does ExecutorService handle a task if all threads in a FixedThreadPool are busy?

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

Correct answer

D. It queues the task until a thread becomes available.

Why

If all threads are busy, ExecutorService queues the task until a thread becomes available, ensuring that tasks are eventually processed without overwhelming system resources.

Test yourself on Java Threading

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

Start free test
All Java Threading questions →