nerdexam
Exams1Z0-803Questions#174
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

1Z0-803 question #174 exhibit 1
1Z0-803 question #174 exhibit 2

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.

Full 1Z0-803 Practice
View the exhibit. Given the code fragment: Which change enables... | 1Z0-803 Q#174 Answer | NerdExam