常用异常:
UnsupportedOperationException不支持的操作
IllegalArgumentException非法参数
IndexOutOfBoundsException索引出界
IllegalStateException非法状态
抛出异常语句 throw new UnsupportedOperationException();
ArithmeticException(除数为0的异常),
BufferOverflowException(缓冲区上溢异常),
BufferUnderflowException(缓冲区下溢异常),
IndexOutOfBoundsException(出界异常),
NullPointerException(空指针异常),
EmptyStackException(空栈异常),
IllegalArgumentException(不合法的参数异常),
NegativeArraySizeException,
NoSuchElementException,
SecurityException,
SystemException,
UndeclaredThrowableException