public class ExceptionHandling3 { public static void method1(){ System.out.println ("Start of method1"); int x = 10; int y = 0; double z = 0; try{ z = x/y; System.out.println ("z = " + z); } finally{ System.out.println ("Propogating the exception down the stack"); } System.out.println ("End of method1" + "\n"); // Line 15 } public static void method2(){ System.out.println ("Start of method2"); int x = 10; int y = 0; double z = 0; try{ z = x/y; System.out.println ("z = " + z); } finally{ System.out.println ("Propogating the exception down the stack"); } System.out.println ("End of method2" + "\n"); } public static void main(String args[]){ // No Errors or Exceptions in main() System.out.println ("Starting Main Method"); method1(); try{ method2(); } catch(ArithmeticException e){ System.out.println ("e.getMessage() = " + e.getMessage()); e.printStackTrace(); } System.out.println ("Ending Main Method"); } }