单选题
当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是______。
A、
SomeThread类是包含run()方法的任意Java类
B、
SomeThread类一定要实现Runnable接口
C、
SomeThread类是Thread类的子类
D、
someThread类是Thread类的子类并且要实现Run-nable接口
【正确答案】
C
【答案解析】
[解析] 由SomeThread t=new SomeThread()可知此题是通过继承Thread类来创建线程的。
提交答案
关闭