申論題內容
三、請問下列 Java 程式執行結果為何?(10 分)
import java.io.IOException;
public class throwException {
public static void main(String[] args) throws E {
try {E e1 = new E(“here comes e1”);
throw e1;
System.out.println(“gets here”); }
catch(E e1) { System.out.println(“catches e1”);}
}//main
}//throwException
class E extends IOException {
E(String message) { super(message); }
}// class E