A-A+
当使用SomeThread t=new SomeThread()创建一个线程时 下列叙述中正
问题详情
当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是()。
A.SomeThread类是包含run()方法的任意Java类
B.SomeThread类-定要实现Runnable接口
C.SomeThread类是Thread类的子类
D.SomeThread类是Thread类的子类并且要实现Run-nable接口请帮忙给出正确答案和分析,谢谢!
参考答案
正确答案:C
由SomeThreadt=newSomeTharead()可知此题是通过继承Thread类来创建线程的。