java 中有几种方法能够实现一个线程?

继承 Thread  spa

实现 Runnable 接口 继承

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

相关文章
相关标签/搜索