- 博客(1)
- 收藏
- 关注
原创 finally代码块
class Demo{public int show(int index)//该异常可以不抛,原因是该异常不是自己定义的,{int[] arr=new int[3];if (index>=arr.length){throw new ArrayIndexOutOfBoundsException("角标越界了");}return arr[index];}}class ExceptionDemo2{pu
2015-05-02 12:14:23 233
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人