7
49
343
Compilation fails.
An exception is thrown at runtime.
第1题:
A.42
B.420
C.462
D.42042
E.Compilation fails.
F.An exception is thrown at runtime.
第2题:
11. String test = “This is a test”; 12. String[] tokens = test.split(”/s”); 13. System.out.println(tokens.length); What is the result?()
第3题:
A.Compilation fails.
B.ClassC is displayed.
C.The code runs with no output.
D.An exception is thrown at runtime.
第4题:
r, t, t,
r, e, o,
Compilation fails.
An exception is thrown at runtime.
第5题:
String a = null; a.concat(“abc”); a.concat(“def”); System.out.println(a); What is the result?()
第6题:
int i = 0; for (; i <4; i += 2) { System.out.print(i + “”); } System.out.println(i); What is the result?()
第7题:
System.out.println(Math.sqrt(-4D)); What is the result?()
第8题:
A.00
B.0001
C.000120
D.00012021
E.Compilation fails.
F.An exception is thrown at runtime.
第9题:
collie
harrier
Compilation fails.
collie harrier
An exception is thrown at runtime.
第10题:
2
3
12
23
123
Compilation fails.
An exception is thrown at runtime.