Oracle
1Z0-809 · Question #69
1Z0-809 Question #69: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-809 to reveal the answer and full explanation for question #69. The question stem and answer options stay visible for context.
Question
View the exhibit. Given the code fragment: Which change enables the code fragment to print the following in the event of missing info or age out of range? James age: 20 Williams age: 32
Options
- AReplacing line 5 with public static void main (String [] args) throws MissingInfoException, AgeOutOfRangeException {
- BReplacing line 5 with public static void main (String [] args) throws.Exception {
- CEnclosing line 6 and line 7 within a try block and adding: catch (Exception e1) { //code goes here } catch (MissingInfoException e2) { //code goes here} catch (AgeOutOfRangeException e3) { //code goes here}
- DEnclosing line 6 and line 7 within a try block and adding: catch (missingInfoException e2) { //code goes here} catch (AgeOutOfRangeException e3) { //code goes here}
Unlock 1Z0-809 to see the answer
You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.