常见的异常类型

    异常类型                              说明
Exception                        异常层次结构的父类
ArithmeticExeption               算术错误情形,如以零作除数
ArraylndexOutOfBoundsException   数组下标越界
NullPointerException             尝试访问null对象成员
ClassNotFoundException           不能加载所需的类
lllegalArgumentException         方法接收到非法参数
ClassCastException               对象强制类型转换出错
NumberFormatException            数字格式转换异常,如把"abc"转换成数字

原文地址:https://www.cnblogs.com/banxia123-ha/p/6835190.html