多项选择题
Click the Exhibit button. Given:
Which two statements are true if a NullPointerException is thrown on line 3 of class C? ()
A.The application will crash.
B.The code on line 29 will be executed.
C.The code on line 5 of class A will execute.
D.The code on line 5 of class B will execute.
E.The exception will be propagated back to line 27.
相关考题
-
单项选择题
Given: Which exception or error will be thrown when a programmer attempts to run this code?()
A.java.lang.StackOverflowError
B.java.lang.IllegalStateException
C.java.lang.ExceptionInInitializerError
D.java.lang.ArrayIndexOutOfBoundsException -
单项选择题
Given: What is the result?()
A.end
B.Compilation fails.
C.exception end
D.exception test end
E.A Throwable is thrown by main.
F.An Exception is thrown by main. -
单项选择题
Given: What is the result?()
A.2
B.3
C.12
D.23
E.123
F.Compilation fails.
G.An exception is thrown at runtime.
