是否有可能让Eclipse忽略错误"未处理的异常类型"?
在我的具体情况下,原因是我已经检查过该文件是否存在.因此,我认为没有理由加入try catch语句.
file = new File(filePath);
if(file.exists()) {
FileInputStream fileStream = openFileInput(filePath);
if (fileStream != null) {
Run Code Online (Sandbox Code Playgroud)
或者我错过了什么?