java异常处理

#异常的分类 首先,复习前面方法声明的5要素: 访问修饰符 返回值类型 方法名 参数表 抛出异常 例子: static void mc(int a) throws FileNotFoundException, EOFException, SQLException{ //函数体 System.out.println("mc 1"); if (i==0) throw new NullPointe
相关文章
相关标签/搜索