Question: Given the following code segment: try ! I / dosomething here 1 catch ( IOException ex ) 1 System, out.println ( 1 / O

Given the following code segment:
try !
I/dosomething here
1
catch (IOException ex)
1
System, out.println("1/O error") :
1
catch (Numberformatexception ex)
9.1
System. outprintln ("Bad input"):
1
System.out, println (CDone") :
What will be printed if a NumberformatException occurs in the try block?
Select one:
a. Done
b. Done vo error
c. Bad input, Done
d.10 errot
 Given the following code segment: try ! I/dosomething here 1 catch

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!