单选题
Java
题号 #2592354
在程序的下画线处应填入的选项是( )。

参考答案
B
答案解析
implements是实现接口,extends是继承类。Thread是类,Runnable是接口,所以只有A、B选项语法是正确的。而Runnable是不能返回Static值,所以答案选择B。
你可能感兴趣的试题
A.synchronized( )
notify( )
notify( )
B.synchronized
this.wait( )
this.wait( )
C.synchronized
this.notify( )
this.notify( )
D.Serializable
sleep( )
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( )
