public class CatchWho { public static void main(String[] args) { try { try { throw new ArrayIndexOutOfBoundsException(); } catch(ArrayIndexOutOfBoundsException e) { System.out.println( "ArrayIndexOutOfBoundsException" + "/å §å±¤try-catch"); } throw new ArithmeticException(); } catch(ArithmeticException e) { System.out.println("ç¼çArithmeticException"); } catch(ArrayIndexOutOfBoundsException e) { System.out.println( "ArrayIndexOutOfBoundsException" + "/å¤å±¤try-catch"); } } }