java中最常见的几种运行时异常,你get了吗?

NullPointerException  (空指针异常)

ClassCastException  (类型强制转换异常)

NumberFormatException  (数字格式异常)

NegativeArraySizeException  (数组大小为负数异常)

SecurityException  (安全异常)

BufferOverFlowException  (缓冲区溢出异常)

IndexOutofBoundsException  (下标越界异常)

posted @ 2018-12-23 13:32  就让文谦先行  阅读(767)  评论(0编辑  收藏  举报