/* TestException1.java CIS 160 David Klick 2005-06-01 This demonstrates a program that will NOT compile because the exception thrown by causeException1() is neither caught in that method, nor is it declared to be thrown by that method. */ public class TestException1 { public static void main(String[] args) { causeException1(); } static void causeException1() { throw new MyException(); } } class MyException extends Exception {}