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

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

Dive into the depths of Java with our quiz based on "Thinking in Java, Fourth Edition" by Bruce Eckel. Test your knowledge, solidify concepts, and prepare for certification with challenging questions and insightful feedback.

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.