如图所示,Java中的异常有RuntimeException和其他的异常(称为被检查的异常)。被检查的异常在编译时就必须进行捕获或抛出,而RuntimeExceptiion可以不进行处理通过编译。
[img]http://dl.iteye.com/upload/picture/pic/112125/2e1fdfb9-6415-33d9-b153-7bbc5b5a92dd.jpg[/img]
[img]http://dl.iteye.com/upload/picture/pic/112125/2e1fdfb9-6415-33d9-b153-7bbc5b5a92dd.jpg[/img]