你可能喜欢
单项选择题
A. x.delete()
B. x.finalize()
C. Runtime.getRuntime().gc()
D. Explicitly setting the object’s reference to null.
E. Ensuring there are no references to the object.
F. Only the garbage collection system can destroy an object.
单项选择题
A. new Inner(); // At line 3
B. new Inner(); // At line 8
C. new o.Inner(); // At line 8
D. new Outer.Inner(); // At line 8
单项选择题
A. int
B. byte
C. long
D. short
E. float
F. double
多项选择题
A. class A{}
B. class A { public A(){} }
C. class A { public A(int x){} }
D. class Z {} class A extends Z { void A(){} }
单项选择题
A. Line 13
B. Line 14
C. Line 18
D. Line 20
单项选择题
A. Tested
B. Compilation fails.
C. The code runs with no output.
D. An exception is thrown at runtime.
单项选择题
A. After line 8.
B. After line 10.
C. After line 4, when doBar() completes.
D. After line 11, when main() completes.
单项选择题
A. Class A
B. Compilation fails.
C. An exception is thrown at line 2.
D. An exception is thrown at line 6.
E. The code executes with no output.
单项选择题
A. line 21
B. line 23
C. line 27
D. line 29
单项选择题
A. Ex0 caught
B. exception caught
C. Compilation fails because of an error at line 2.
D. Compilation fails because of an error at line 6.