一、try…catch捕获异常 1、try…catch捕获异常 2、try…catch…finally捕获异常 3、try…catch镶嵌捕获异常 二、throws声明异常 三、throws抛出异常 四、自定义异常