Java 异常的继承 Java 异常finally的使用2 Java 异常(Exception)方法 Java 异常的继承 class Animal extends Exception { } class Mammel extends Animal { } public class Human { public static void main(String[] args) { try { throw new Mammel(); } catch (Mammel m) { System.err.println("It is mammel"); } } } Java 异常finally的使用2 Java 异常(Exception)方法