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
Idosomething here
catch IOException ex
System, out.printlnO error" :
catch Numberformatexception ex
System. outprintln Bad input":
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 errot
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
