nerdexam
Oracle

1Z0-815 · Question #29

Given: What must be added in line 1 to compile this class?

The correct answer is C. catch(FileNotFoundException | IOException e) { }. See the full explanation below for the reasoning.

Question

Given:

What must be added in line 1 to compile this class?

Exhibit

1Z0-815 question #29 exhibit

Options

  • Acatch(IOException e) { }
  • Bcatch(FileNotFoundException | IndexOutOfBoundsException e) { }
  • Ccatch(FileNotFoundException | IOException e) { }
  • Dcatch(IndexOutOfBoundsException e) { }
  • Ecatch(FileNotFoundException e) { }

How the community answered

(22 responses)
  • A
    18% (4)
  • B
    5% (1)
  • C
    73% (16)
  • E
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice