• 常见的异常类型


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

  • 相关阅读:
    毛皮立方体
    APPLE buSinEss
    #4613. problem C
    #4614. problem B
    idiots
    熊猫(i)
    圆盘自动机 cell
    小L的占卜
    有趣的数(number)
    「JOISC 2015 Day 1」卡片占卜
  • 原文地址:https://www.cnblogs.com/banxia123-ha/p/6835190.html
Copyright © 2020-2023  润新知