Mastering Java: The Ultimate 2025 All-In-One Quiz to Excel in 'Thinking in Java

Question: 1 / 510

What must be implemented for a class to execute a task that returns a result after completion?

Runnable

Callable

A and C are incorrect because they do not return a result after completion. A Runnable does not return a value and an Executor is used to manage and execute threads, not tasks that return a result.

D is not the best answer because Futures alone cannot implement a task, it is a mechanism for asynchronously retrieving results from a concurrent task. Callable is the closest match to what the question is asking for.

Get further explanation with Examzify DeepDiveBeta

Executor

Futures

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy