题目内容
(请给出正确答案)
[单选题]
int x=3;if(1<=2)if(0)x=4;else x=5;else x=6;执行上述语句后x的值是()。
A.3
B.4
C.5
D.6
查看答案
如果结果不匹配,请 联系老师 获取答案
A.3
B.4
C.5
D.6
A.输出的是3和0
B.输出的是1和-2
C.输出的是1
D.是死循环
A.1
B.2
C.4
D.24
A.3
B.4
C.5
D.6
A.compilation succeeds and 3 is printed
B.compilation succeeds and 2 is printed
C.compilation succeeds and 1 is printed
D.An error at this program cause compilation to fail
1)public class Test
2)int m,n;
3)public Test()
4)public Test(int a)m=a;
5)public static void main(String args[])
6)Test t1,t2;
7)int j,k;
8)j=0; k=0;
9) t1=new Test();
10)t2=new Test(j,k);
11)
12)
A.第6行
B.第5行
C.第3行
D.第10行
B.X x=new X(); new Thread(x).run()
C.X x=new X(); new Thread(x).start()
D.Threat=new Thread(x).run()
A.2,1,1
B.1,2,1
C.2,2,2
D.2,2,1
A.有语法错误
B.**0****2**
C.**0****1****2**
D.**0**
A.2,2,2
B.2,2,1"
C.2,1,1
D.1,2,1