Exception包括RuntimeException(运行时异常)和CheckedException(检查异常):
(1)运行时异常都是RuntimeException类及其子类异常,如:NullPointerException、IndexOutOfBoundsException、ArrayIndexOutOfBoundsException、
ClassCastException、StringIndexOutOfBoundsException、WebServiceException、ArithmeticException等。
(2)检查异常是RuntimeException以外的异常,类型上都属于Exception类及其子类,如:NoSuchMethodException、IOException、EOFException、
FileNotFoundException、NumberFormatException、SQLException等。
原文:https://www.cnblogs.com/xxry/p/14030223.html