摘要: 版本:JDK1.8 thread的两种使用方式: //继承Thread类 NewThread thread = new NewThread();//调用默认的构造方法,父类也会调用默认的 thread.start(); class NewThread extends Thread{ @Overrid 阅读全文
posted @ 2020-05-18 10:44 Jane&Coding 阅读(461) 评论(0) 推荐(0)