全部题库 / Java / 试题详情
单选题 Java
2014-03-15

当使用SomeThread t=new SomeThread(  )创建-个线程时,下列叙述中正确的是(  )。

A.Some Thread类是包含run(  )方法的任意Java类
B.Some Thread类-定要实现Runnable接口
C.Some Thread类是Thread类的子类
D.Some Thread类是Thread类的子类并且要实现Run-nable接口

参考答案

C

答案解析

由SomeThread t=new SomeThread(  )可知此题是通过继承Thread类来创建线程的。

你可能感兴趣的试题

A.implements Runnable
B.extends Thread
C.implements Thread
D.extends Runnable
A.synchronized(  )|
notify(  )
B.synchronized
this.wait(  )
C.svnchronized
this.notify(  )
D.Serializable
sleep(  )
A.sleep(  )方法的时间到
B.获得了对象的锁
C.线程在调用t.join(  )方法后,线程t结束
D.wait(  )方法结束