Question: java Question 1 Given the following code segment: Hot yet nswered 1. try { Marked out of 1.00 2. //do something here 3. } P

java

java Question 1 Given the following code segment: Hot yet nswered 1.

Question 1 Given the following code segment: Hot yet nswered 1. try { Marked out of 1.00 2. //do something here 3. } P Flag question 4. catch (IOException ex) 5. { 6. System. out.println("I/O error"): 7. 1 8. catch (NumberFormatException ex) 9. { 10. System. out.println("Bad input"); 11. 12. System.out.println ("Done"); What will be printed if a Number FormatException occurs in the try block? Select one: a. 1/0 error b. Bad input. Done O c. Done. I/O error d. Done

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!