的要点
Callable是将异常抛出到调用线程,例如,当您获得
Future提交的结果时
callable。
public class CallableClass implements Callable<String> {...}ExecutorService executor = new ScheduledThreadPoolExecutor(5);Future<Integer> future = executor.submit(callable);try { System.out.println(future.get());} catch (Exception e) { // do something}


