摘要:
一、五个关键词:try catch finally throw throwspublic class TestEx { public static void main(String[] args){ int[] arr = {1,2,3}; System.out.println(arr[4]); //,改为2输出正确,为3 System.out.println(2/0);
}
} //说明:ArrayIndexOutOfBoundsException 表示 数组下标越界异常(就是第4个,这个元素不在数组集合中)//算术异常:Arithme... 阅读全文
posted @ 2011-12-26 20:44
Code大蛇丸
阅读(413)
评论(0)
推荐(0)
浙公网安备 33010602011771号