Afoo Afoo
Afoo Bfoo
Bfoo Afoo
Bfoo Bfoo
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题:
public static void main(String[] args) { for (int i=0;i<= 10;i++){ if( i>6) break; } System.out.println(i); } 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题:
2
3
12
23
123
Compilation fails.
An exception is thrown at runtime.
第5题:
collie
harrier
Compilation fails.
collie harrier
An exception is thrown at runtime.
第6题:
String a = “ABCD”; String b = a.toLowerCase(); b.replace(‘a’, ‘d’); b.replace(‘b’, ‘c’); System.out.println(b); 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题:
r, t, t,
r, e, o,
Compilation fails.
An exception is thrown at runtime.
第10题:
42
420
462
42042
Compilation fails.
An exception is thrown at runtime.