首页试题详情
难度: 使用次数:138更新时间:2026/03/13
1.
使用 FileInputStream 读取文件时,若无法打开文件,会抛出什么异常?
A.NullPointerException
B.IOException
C.SecurityException
D.FileNotFoundException
题型:选择题 知识点:第八章 文件与输入输出流
【答案】
D
【解析】
FileInputStream 无法打开文件时会抛出 FileNotFoundException,它是 IOException 的具体异常。

查看答案和解析

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

低至 ¥0.1 起

类题推荐:

未分类