The Callable Interface
Home ] Up ] [ The Callable Interface ] The Future Interface ] FutureTask ] An Example ]

 

 

The Callable interface addresses two of these limitations: it can return a value, and it may throw a checked exception.  Because the value being returned must have a type, Callable is a parameterized type:

public interface Callable<V>
{
    V call() throws Exception
}
 
The page was last updated February 19, 2008