java中常见的异常

版权声明:本文为博主原创文章,欢迎转载,转载请注明作者、原文超链接,博主地址:https://blog.csdn.net/CSDN_fzs https://blog.csdn.net/CSDN_fzs/article/details/84331715

空指针异常类:NullPointerException

类型强制转换异常:ClassCastException

数组负下标异常:NegativeArrayException

数组下标越界异常:ArrayIndexOutOfBoundsException

违背安全原则异常:SecturityException

文件已结束异常:EOFException

文件未找到异常:FileNotFoundException

字符串转换为数字异常:NumberFormatException

操作数据库异常:SQLException

输入输出异常:IOException

算术异常类:ArithmeticExecption

猜你喜欢

转载自blog.csdn.net/CSDN_fzs/article/details/84331715