问题
单项选择题
当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是( )。
A.SomeThread类是包含run()方法的任意Java类
B.SomeThread类一定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Runnable接口
答案
参考答案:C
解析: 由SomeThread t=new SomeThread()可知此题是通过继承Thread类来创建线程的。