![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javase第五章
cobolchao
这个作者很懒,什么都没留下…
展开
-
java异常
一、异常的分类 ps: 1)Error是指使程序直接完蛋,没法在运行的问题。Exception是指这样一类问题,当这些问题发生时,虽然会有不好的影响,但是程序还是可以继续运行的。Error是失败,Exception是曲折。 2)CheckedException与RuntimeException的区别: CheckedException是外因,RuntimeException是内因...原创 2014-02-27 22:07:52 · 54 阅读 · 0 评论 -
异常练习
1、发生ClassCastException,不能讲String类型转化成Integer 2、 发生ArrayIndexOutOfBoundsException,虽然catch在捕获异常,但是没有捕捉对。 3、原创 2014-02-28 09:17:47 · 88 阅读 · 0 评论