Callable Interface
This lesson discusses the Callable interface.
Callable Interface
In the previous sections we used the Runnable
interface as the abstraction for tasks that were submitted to the executor service. The Runnable
interface's sole run
method doesn't return a value, which is a handicap for tasks that don't want to write results to global or shared datastructures. The interface ...