摘要: 异常 throw 和 throws 的区别 语句之后的代码无法再运行,此时 Eclipse 会显示 错误。 在 FileInputStream 的构造方法中可以看到,该方法抛出了一个异常,可以有两种处理方式:一是在调用该方法的另一个方法继续 throws FileNotFoundException, 阅读全文
posted @ 2019-11-17 21:43 学习趁早 阅读(126) 评论(0) 推荐(0) 编辑