[单项选择题] 当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是
A. SomeThread类是包含run()方法的任意Java类
B. SomeThread类一定要实现Runnable接口
C. SomeThread类是Thread类的子类
D. SomeThread类是Thread类的子类并且要实现Runnable接口
参考答案:
C问题解析:
创建线程有两种方法:实现java.lang.Runnable接口和继承Thread类并重写run()方法。从创建线程实例的语句SomeThread t=new SomeThread()可以看出本程序通过继承Thread类来创建进程。

![[单项选择题] 当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是 [单项选择题] 当使用SomeThread t=new SomeThread()创建一个线程时,下列叙述中正确的是](http://www.mshxw.com/aiimages/31/252456.png)
