Mastering Java: The Ultimate Quiz for 'Thinking in Java'

Disable ads (and more) with a membership for a one time $2.99 payment

Want to excel in Java? Test your knowledge with our ultimate quiz based on 'Thinking in Java'. Engage with multiple-choice questions and in-depth explanations. Boost your understanding and prepare for your exam with confidence.

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which provides a high-level way of executing tasks asynchronously, possibly returning a result?

  1. Executor

  2. Runnable

  3. Callable

  4. Futures

The correct answer is: Callable

A Executor is a framework for initiating and managing a thread pool. It does not support returning a result. B: Runnable is an interface that allows a class to be executed as a thread, but it does not support returning a result. D: Futures is a class that allows for asynchronous execution, but it does not support the high-level abstraction of being able to return a result.