1.获得线程返回值,implements Callable 重写call方法 ,返回值会存在Future里,通过get方法得到对象
Future f = executor.submit(new xxCallable()) ; f.get()得到object
1.获得线程返回值,implements Callable 重写call方法 ,返回值会存在Future里,通过get方法得到对象
Future f = executor.submit(new xxCallable()) ; f.get()得到object