Oracle
1Z0-851 · Question #108
1Z0-851 Question #108: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #108. The question stem and answer options stay visible for context.
Question
Click the Exhibit button. Given: public void method() { A a = new A(); a.method1(); } Which statement is true if a TestException is thrown on line 3 of class B?
Exhibit
Options
- ALine 33 must be called within a try block.
- BThe exception thrown by method1 in class A is not required to be caught.
- CThe method declared on line 31 must be declared to throw a RuntimeException.
- DOn line 5 of class A, the call to method2 of class B does not need to be placed in a try/catch block.
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
