@@ -0,0 +1,768 @@
+// Use a nested try block.%0Aclass NestTrys %7B%0A  public static void main(String args%5B%5D) %7B%0A    // Here, numer is longer than denom.%0A    int numer%5B%5D = %7B 4, 8, 16, 32, 64, 128, 256, 512 %7D;%0A    int denom%5B%5D = %7B 2, 0, 4, 4, 0, 8 %7D;%0A    %0A    try %7B // outer try%0A      for(int i=0; i%3Cnumer.length; i++) %7B%0A        try %7B%0A          System.out.println(numer%5Bi%5D + %22 / %22 + denom%5Bi%5D + %22 is %22 + numer%5Bi%5D/denom%5Bi%5D);%0A        %7D%0A        catch (ArithmeticException exc) %7B%0A          // catch the exception%0A          System.out.println(%22Can't divide by Zero!%22);%0A        %7D%0A      %7D%0A    %7D%0A    catch (ArrayIndexOutOfBoundsException exc) %7B%0A      // catch the exception%0A      System.out.println(%22No matching element found.%22);%0A      System.out.println(%22Fatal error - program terminated.%22);%0A    %7D%0A  %7D%0A%7D%0A

Use a nested try block