错误与异常_2-10选择题

单选题

阅读下列异常处理程序,要想得到下列运行结果,请在横线上补充正确的代码(选择一项)

//climg.mukewang.com/59005c7c0001913c04550247.jpg

运行结果:

//climg.mukewang.com/59005ca10001a5a202790070.jpg

A
throw new Exception(“文件不存在”);  

getCode()  

getMessage()  

getFile() 

B
throw new Exception(“文件不存在”);  

getMessage()  

getCode()    

getFile()

C
throw new Exception(“文件不存在”);

getMessage()  

getFile()  

getCode()

D
throw new Exception(“文件不存在”);  

getCode()  

getFile()  

getMessage()

C

猜你喜欢

转载自www.cnblogs.com/kay-learning/p/8975263.html