问答题

线程的两种实现方式是什么?

【参考答案】

第一种方式:使用Runnable接口创建线程。第二种方式:直接继承Thread类创建对象使用Runnable接口创建线程。
热门 试题

问答题
问答题