单选题 Java
题号 #2592354

在程序的下画线处应填入的选项是(  )。

进入在线模考

参考答案

B

答案解析

implements是实现接口,extends是继承类。Thread是类,Runnable是接口,所以只有A、B选项语法是正确的。而Runnable是不能返回Static值,所以答案选择B。

你可能感兴趣的试题

A.synchronized(  )
notify(  )
B.synchronized
this.wait(  )
C.synchronized
this.notify(  )
D.Serializable
sleep(  )
A.sleep(  )方法的时间到
B.获得了对象的锁
C.线程在调t.join(  )方法后,线程t结果
D.wait(  )方法结束
A.start(  ),stop(  ),destroy(  )
B.init(  ),start(  ),stop(  ),start(  ),stop(  ),destroy(  )
C.start(  ),init(  ),stop(  ),destroy(  )
D.inlt(  ),start(  ),destroy(  )
找试题 · 找答案 · 找资料 在线模考