Runnable接口实现,在main中创建Thread对象为什么会显示错误
这为什么是错的: //Runnable接口线程的启动 Actress actress = new Actress();//这句为什么是错的 Thread actor2 = new Thread(actress, "tom"); actor2.start();
这为什么是错的: //Runnable接口线程的启动 Actress actress = new Actress();//这句为什么是错的 Thread actor2 = new Thread(actress, "tom"); actor2.start();
2016-07-18
举报