Given: What is the result?()
A.harrier B.shepherd C.retriever D.Compilation fails. E.retriever harrier F.An exception is thrown at runtime.
单项选择题Given: If some sort of exception is thrown at line 34, which output is possible?()
A.a B.b C.c D.ac E.abc
单项选择题Given: Which code, inserted at line 16, will cause a java.lang.ClassCastException?()
A.Alpha a = x; B.Foo f = (Delta)x; C.Foo f = (Alpha)x; D.Beta b = (Beta)(Alpha)x;
单项选择题Given: What is the result?()
A.null B.finally C.null finally D.Compilation fails. E.finally exception
单项选择题Given: What is the result when the go() method is invoked?()
A.00 B.0001 C.000120 D.00012021 E.Compilation fails. F.An exception is thrown at runtime.
多项选择题Given: Under which three circumstances will the code on line 37 be executed?()
A.The instance gets garbage collected. B.The code on line 33 throws an exception. C.The code on line 35 throws an exception. D.The code on line 31 throws an exception. E.The code on line 33 executes successfully.