nerdexam
Oracle

1Z0-851 · Question #49

1Z0-851 Question #49: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #49. The question stem and answer options stay visible for context.

Question

Click the Exhibit button. Given: 25. try { 26. A a = new A(); 27. a.method1(); 28. } catch (Exception e) { 29. System.out.print("an error occurred"); 30. } Which two statements are true if a NullPointerException is thrown on line 3 of class C? (Choose two.)

Exhibit

1Z0-851 question #49 exhibit

Options

  • AThe application will crash.
  • BThe code on line 29 will be executed.
  • CThe code on line 5 of class A will execute.
  • DThe code on line 5 of class B will execute.
  • EThe exception will be propagated back to line 27.

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.

Full 1Z0-851 Practice