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
Options
- Acatch(IOException e) { }
- Bcatch(FileNotFoundException | IndexOutOfBoundsException e) { }
- Ccatch(FileNotFoundException | IOException e) { }
- Dcatch(IndexOutOfBoundsException e) { }
- Ecatch(FileNotFoundException e) { }
How the community answered
(22 responses)- A18% (4)
- B5% (1)
- C73% (16)
- E5% (1)
Community Discussion
No community discussion yet for this question.
