java异常

Java异常机制:运行时异常(RuntimeException),不必处理,虚拟机接管

                      检查异常(checkedExecption),必须处理


常见运行时异常:NullPointerException

                          ClassCastException

                          IllgalArgumentException

                          ArithmeticException

                          ArrayStoreException

                          IndexOutOfBoundException


非运行时异常:IOException

                       SQLException

                       用户自定义的Exception

你可能感兴趣的:(Java学习笔记)