2
24
234
246
2346
Compilation fails.
第1题:
collie
harrier
Compilation fails.
collie harrier
An exception is thrown at runtime.
第2题:
test
Exception
Compilation fails.
NullPointerException
第3题:
Compilation fails.
An exception is thrown at runtime.
The code executes normally and prints "sleep".
The code executes normally, but nothing is printed.
第4题:
Compilation succeeds.
Compilation fails due to multiple errors.
Compilation fails due to an error only on line 20.
Compilation fails due to an error only on line 21.
Compilation fails due to an error only on line 22.
第5题:
Canada
null Canada
Canada null
Canada Canada
Compilation fails due to an error on line 26.
Compilation fails due to an error on line 29.
第6题:
i = 1, j = 2
i = 1, j = 1
i = 42, j = 2
i = 42, j = 1
Compilation fails.
第7题:
An exception is thrown at runtime.
Pi is approximately 3.
Pi is approximately 3.141593.
Compilation fails.
第8题:
peep
bark
meow
Compilation fails.
An exception is thrown at runtime.
第9题:
Canada
null Canada
Canada null
Canada Canada
Compilation fails due to an error on line 26.
第10题:
X, followed by an Exception.
No output, and an Exception is thrown.
Compilation fails due to an error on line 14.
Compilation fails due to an error on line 16.
Compilation fails due to an error on line 17.
第11题:
test end
Compilation fails.
test runtime end
test exception end
A Throwable is thrown by main at runtime.
第12题:
The code runs with no output.
An exception is thrown at runtime.
Compilation fails because of an error in line 20.
Compilation fails because of an error in line 21.
Compilation fails because of an error in line 23.
Compilation fails because of an error in line 25.
第13题:
r, t, t,
r, e, o,
Compilation fails.
An exception is thrown at runtime.
第14题:
2
3
12
23
123
Compilation fails.
An exception is thrown at runtime.
第15题:
2
24
234
246
2346
Compilation fails.
第16题:
test
null
An exception is thrown at runtime.
Compilation fails because of an error in line 1.
Compilation fails because of an error in line 4.
Compilation fails because of an error in line 5.
第17题:
B
B, followed by an Exception.
Compilation fails due to an error on line 9.
Compilation fails due to an error on line 14.
An Exception is thrown with no other output.
第18题:
23
234
235
Compilation fails.
第19题:
An exception is thrown at runtime.
int Long
Compilation fails.
Short Long
第20题:
2
24
234
246
2346
第21题:
null
finally
null finally
Compilation fails.
finally exception
第22题:
An Exception is thrown with no other output
followed by an Exception
Compilation fails due to an error on line 9
Compilation fails due to an error on line 14
第23题:
True
Not true
An exception is thrown at runtime.
Compilation fails because of an error at line 12.
Compilation fails because of an error at line 19.
第24题:
B
The code runs with no output.
Compilation fails because of an error in line 12.
Compilation fails because of an error in line 15.
Compilation fails because of an error in line 18.