題目 題型:選擇題 難度:★★★★ 18.5萬熱度
getCustomerInfo()方法如下,try中可以捕獲三種類型的異常,如果在該方法運行中產生了一個IOExcept
getCustomerInfo()方法如下,try中可以捕獲三種類型的異常,如果在該方法運行中產生了一個IOException,將會輸出什么結果()PublicvoidgetCustomerInfo(){Try{//dosomethingthatmaycauseanException}catch(java.io.FileNotFoundExceptionex){System.out.print("FileNotFoundException!");}catch(java.io.IOExceptionex){System.out.print("IOException!");}catch(java.lang.Exceptionex){System.out.print("Exception!");}}
A、IOException!
B、IOException!Exception!
C、FileNotFoundException!IOException!
D、FileNotFoundException!IOException!Exception!