class SuperSubCatch { public static void main(String args[]) { try { int a = 0; int b = 42 / a; } catch(Exception e) { System.out.println("catch para cualquier tipo de excepción."); } /* Este catch nunca se ejecutará */ catch(ArithmeticException e) { // ERROR - no alcanzable System.out.println("Esto nunca se ejecutará."); } } }