java 中有几种方法可以实现一个线程?

继承 Thread  

实现 Runnable 接口 

实现 Callable 接口需要实现的是 call() 方法 

posted @ 2020-10-11 11:57  咔啡  阅读(115)  评论(0编辑  收藏  举报