/* TestException2.java CIS 160 David Klick 2005-06-01 This demonstrates a program similar to TestException1.java. This code will still NOT compile because now the call to causeException1() can generate an exception which is neither caught nor reported by main. */ public class TestException2 { public static void main(String[] args) { causeException1(); } static void causeException1() throws MyException { throw new MyException(); } } class MyException extends Exception {}