Oracle
1Z0-803 · Question #174
1Z0-803 Question #174: Real Exam Question with Answer & Explanation
The correct answer is B: Replacing line 5 with public static void main (String [] args) throws Exception {. See the full explanation below for the reasoning.
Question
View the exhibit. Given the code fragment: Which change enables the code to print the following? James age: 20 Williams age: 32
Exhibits
Options
- AReplacing line 5 with public static void main (String [] args) throws MissingInfoException,
- BReplacing line 5 with public static void main (String [] args) throws Exception {
- CEnclosing line 6 and line 7 within a try block and adding:
- DEnclosing line 6 and line 7 within a try block and adding:
Community Discussion
No community discussion yet for this question.

