以下文字与答案无关
提示:有些试题内容 显示不完整,文字错误 或者 答案显示错误等问题,这是由于我们在扫描录入过程中 机器识别错误导致,人工逐条矫正总有遗漏,所以恳请 广大网友理解。
IOException!
B:IOException!Exception!
C:FileNotFoundException!IOException!
D:FileNotFoundException!IOException!Exception!
IOException!
B:IOException!Exception!
C:
FileNotFoundException!IOException!
ileNotFoundException!IOException!Exception!
">6.getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( )。public void getCustomerInfo() {
try {
// do something that may cause an Exception
} catch (java.io.FileNotFoundException ex){
System.out.print("FileNotFoundException!");
} catch (java.io.IOException ex){
System.out.print("IOException!");
} catch (java.lang.Exception ex){
System.out.print("Exception!");
}
}
IOException!
B:IOException!Exception!
C:
FileNotFoundException!IOException!
ileNotFoundException!IOException!Exception!
} catch (java.io.IOException ex){
System.out.print("IOException!");
} catch (java.lang.Exception ex){
System.out.print("Exception!");
}
}
选项: A:IOException!
B:IOException!Exception!
C:FileNotFoundException!IOException!
D:FileNotFoundException!IOException!Exception!
">7.getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( )。
public void getCustomerInfo() {
try {
// do something that may cause an Exception
} catch (java.io.FileNotFoundException ex){
System.out.print("FileNotFoundException!");
} catch (java.io.IOException ex){
System.out.print("IOException!");
} catch (java.lang.Exception ex){
System.out.print("Exception!");
}
}
选项: A:IOException!
B:IOException!Exception!
C:FileNotFoundException!IOException!
D:FileNotFoundException!IOException!Exception!