public class ExceptionHandlingTest2 {
	public static void main(String[] args) {
		try {
			for (int i=2; i>=0; i--)
				System.out.println(42/i);
		} catch (java.lang.ArithmeticException e) {
			System.out.println("an arithmetic exception was thrown -- aborting program");
			System.out.println("Exception's message "+e.getMessage() );
			System.out.println("Stack trace: ");
			e.printStackTrace();

		}
		catch (Exception e) {
			System.out.println("an exception was thrown -- aborting program");
		} finally {
			System.out.println("finished try block");
		} //finally
	} //main()
} //ExceptionhandlingTest2