java基础之------异常捕获

可查异常 必须进行处理,否则编译器不让通过编译 处理方式:向外抛出throws或者try{}catch{} 例子:FileNotFoundException 运行时异常(RuntimeException) 不是必须进行try{}catch{} 例子: 除数不能为0:ArithmeticException 下标越界异常:ArrayIndexOutOfBoundsException 空指针异常:Nul
相关文章
相关标签/搜索