单项选择题
下列哪个类或接口定义了线程同步与交互的方法 ( )
A.Thread
B.Runnable
C.Object
D.ThreadGroup
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
在下列源代码文件Test.java中,哪个选项是正确的类定义 ( )
A.public class test
public int x=0;
public test(int x)
this.x=x;
B.public class Test
public int x=0;
public Test(int x)
this.x=x;
C.public class Test extends Ti,T2
public int x=0;
public Test(int x)
this.x=x;
D.protected class Test extends T2
public int x=0;
public Test(int x)
this.x=x;
点击查看答案
单项选择题
给出下列代码,则数组初始化中哪项是不正确的 ( ) byte[ ]array1,array2[ ]; byte array3[ ][ ]; byte[][] array4;
A.array2=array1
B.array2=array3
C.array2=array4
D.array3=array4
点击查看答案
相关试题
过滤字节输出流都是 ______ 抽象类...
凡生成StringBuffer一个对象后,还可用 _...
Java程序中定义接口所使用的关键字是 __...
下列程序的输出结果是 ______。 cl...
若x=5,y=10,则x>y&&x++==y-...