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

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
Get step-by-step solutions from verified subject matter experts
