Skip to content
Sharp

Java Threading · interview question

Which method in ExecutorService allows submitting a task that can throw checked exceptions?

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

Correct answer

A. Submit()

Why

The submit() method allows submitting a task that can throw checked exceptions, as it returns a Future object. This Future can be used to retrieve the result or handle exceptions.

Test yourself on Java Threading

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

Start free test
All Java Threading questions →