|
The Callable Interface The Future Interface FutureTask An Example
| |
The Limitations of Runnable
The Runnable interface looks like this (minus
comments, etc.):
public interface Runnable
{
public void run();
}
which means that it has some limitations:
- you can pass no parameters to the thread
- the thread cannot return a value
- the thread may not throw a checked exception.
|