nerdexam
Oracle

1Z0-809 · Question #56

1Z0-809 Question #56: Real Exam Question with Answer & Explanation

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

Question

public class Test { public static void dispResult(int [] num) { try { System.out.println (num [1] / (num[1] - num[2])); } catch (ArithmeticException e) { System.err.println("first exception"); } } public static void main(String[] args) { try { int[] arr = {100, 100}; dispResult (arr); } catch (IllegalArgumentException e) { System.err.println("second exception"); } catch (Exception e) { System.err.println("third exception"); } } } What is the result?

Options

  • A0
  • BDone First Exception
  • CDone Second Exception
  • DDone Third Exception
  • EThird Exception

Unlock 1Z0-809 to see the answer

You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 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-809 Practice