多线程实现的两种方式及其区别

继承Thread public class Demo2_Thread { public static void main(String[] args) { MyThread mt = new MyThread(); mt.start(); // 注意调用的start()方法,而不是run()方法 for(int i = 0; i < 10
相关文章
相关标签/搜索