当使用So meThread t =ne wSo meThread()创建一个线程时,下列叙述中正确的是( )。

admin2012-12-02  69

问题 当使用So meThread t =ne wSo meThread()创建一个线程时,下列叙述中正确的是(  )。

选项 A、So meThread 类是包含run()方法的任意Java 类
B、So meThread 类一定要实现Runnable 接口
C、So meThread 类是Thread 类的子类
D、So meThread 类是Thread 类的子类并且要实现Runnable 接口

答案C

解析 由So meThread t =ne w So meThread()可知此题是通过继承Thread 类来创建线程的。
转载请注明原文地址:https://kaotiyun.com/show/b9ID777K
0

最新回复(0)