Java并发编程(五)创建线程方式概览
发布时间:2019-10-04 15:49


public class FutureDemo {
 public static void main {
 FutureTask Integer task = new FutureTask);
 new Thread.start;
 try {
 System.out.println);
 } catch  {
 e.printStackTrace;
 } catch  {
 e.printStackTrace;
class CallableWorker implements Callable Integer {
 public Integer call throws Exception {
 return 10;
复制代码
服务热线
在线咨询