Java系统定义的运行异常及其含义

#系统定义的运行异常及其含义

系统定义的运行异常 异常对应的系统运行错误
ClassNotFoundException 未找到欲装载使用的类,由Class.forName抛出
ArrayIndexOutOfBoundsException 数组越界使用
FileNotFoundException 未找到指定的文件和目录
IOException 输入输出错误
NullPointerException 引用空的尚无内存空间的对象
ArithmeticException 算术错误,如除数为0等
InterruptedException 线程在休眠、等待或因其他原因暂停时被其他线程打断
UnknownHostException 无法确定主机的IP地址
SecurityException 安全性错误,如Applet欲读写文件
MalformedURLException URL格式错误
原创文章 66 获赞 39 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_44739495/article/details/103602703