Runnable+Callable+FutureTask

Runnable                interface           void run()       donot throws Exception

Callable<V>           interface           V call()            throws Exception

Future<V>             interface           V get()

FutureTask<V>      class

[implements RunnableFuture<V>(extends Runnable, Future<V>)]

猜你喜欢

转载自itace.iteye.com/blog/2277183