View the exhibit. Given the code fragment: Which change enables the code to print the following?
James age: 20 -
Williams age: 32 -
A.
Replacing line 5 with public static void main (String [] args) throws MissingInfoException, AgeOutofRangeException {
B.
Replacing line 5 with public static void main (String [] args) throws.Exception {
C.
Enclosing 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}
D.
Enclosing line 6 and line 7 within a try block and adding: catch (missingInfoException e2) { //code goes here}
This section is not available anymore. Please use the main Exam Page.1z0-803 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Tatudev
1 year, 4 months agoNate88890123
3 years, 2 months agoNate88890123
3 years, 2 months ago