nerdexam
Oracle

1Z0-809 · Question #179

Given the code fragment: int wd = 0; string days[] = {"sun", "mon", "wed", "sat"}; switch (days[wd]) { case "sun": wd = 1; break; case "mon": wd = 2; break; case "wed": wd = 2; break; case "sat": wd…

The correct answer is D. 3. You've hit your session limit · resets 10:20pm (America/New_York)

Question

Given the code fragment: int wd = 0; string days[] = {"sun", "mon", "wed", "sat"}; switch (days[wd]) { case "sun": wd = 1; break; case "mon": wd = 2; break; case "wed": wd = 2; break; case "sat": wd = 3; } System.out.println(wd); What is the result?

Options

  • A-1
  • B4
  • CCompilation fails.
  • D3

How the community answered

(33 responses)
  • A
    15% (5)
  • B
    3% (1)
  • C
    9% (3)
  • D
    73% (24)

Explanation

You've hit your session limit · resets 10:20pm (America/New_York)

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice