001    /**
002     * Exercise 9.1 from the book
003     * 
004     * @author Kristian Torp, torp (at) cs (dot) aau (dot) dk
005     * @version 1.0
006     */
007    public class Exercise9_1 {
008            /**
009             * Main that throws exceptions
010             */
011            public static void main(String args[]) {
012                    try {
013                            throw new Exception("Hello");
014                    } catch (Exception e) {
015                            System.out.println("Caught an exception " + e.getMessage());
016                    } finally {
017                            System.out.println("It will be the last thing I'll do!");
018                    }
019            }
020    }