首页题目详情

使用 FileInputStream 读取文件时,若无法打开文件,会抛出什么异常?

题目配图
A.NullPointerException
B.IOException
C.SecurityException
D.FileNotFoundException

优质解答

答案

D

解析

FileInputStream 无法打开文件时会抛出 FileNotFoundException,它是 IOException 的具体异常。

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

面向对象程序设计单选题中等AI生成