摘要: 1、Callable 与 FutureTask介绍 1.1、Callable 创建线程有两种方式,一种是继承Thread类,一种是实现Runnable接口重写run方法。其实Thread也实现了Runable接口。 在Runable接口中,仅有一个无参无返回结果的run方法。Runable接口详情: 阅读全文
posted @ 2023-04-24 08:43 无虑的小猪 阅读(25) 评论(0) 推荐(0) 编辑