Fork me on GitHub
摘要: 第一种方式为继承Thread类然后重写run方法再调用start方法,因为java为单继承多实现,所以不建议使用这种方式,代码如下: public class Demo extends Thread{ public static void main(String[] args) { new Demo 阅读全文
posted @ 2020-04-25 13:23 DescribeMe 阅读(233) 评论(0) 推荐(0)