nerdexam
Oracle

1Z0-809 · Question #251

What is the result? ``java try { new Game().play(); } catch (Exception e) { System.out.print(e.getClass()); } ``

The correct answer is C. class java.lang.Exception. You've hit your session limit · resets 5:20pm (America/New_York)

Question

What is the result?
try {
 new Game().play();
} catch (Exception e) {
 System.out.print(e.getClass());
}

Options

  • AVideo played.Game played.
  • BA compilation error occurs.
  • Cclass java.lang.Exception
  • Dclass java.io.IOException

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    13% (4)
  • C
    77% (24)
  • D
    6% (2)

Explanation

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

Community Discussion

No community discussion yet for this question.

Full 1Z0-809 Practice