异常分为checked(编译器check) 和 unchecked exception
checked 编译器强制要求try catch finally
checked 是exception 中除runtime exception 以外的类和子类, 用try catch finally 或者throws 申明让调用函数处理
unchecked 是runtime exception , 用 throw e;
异常分为checked(编译器check) 和 unchecked exception
checked 编译器强制要求try catch finally
checked 是exception 中除runtime exception 以外的类和子类, 用try catch finally 或者throws 申明让调用函数处理
unchecked 是runtime exception , 用 throw e;