nerdexam
Oracle

1Z0-809 · Question #94

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

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

Question

switch (accountType) { case "RD": rateOfInterest = 5; break; case "FD": rateOfInterest = 10; break; default: assert false: "No interest for this account"; //line n1 } System.out.println ("Rate of interest:" + rateOfInterest); } and the command: java -ea RateOfInterest What is the result?

Options

  • ARate of interest: 0
  • BAn AssertionError is thrown.
  • CNo interest for this account
  • DA compilation error occurs at line n1.

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