問題詳情

三、請問下列 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}//throwExceptionclass E extends IOException {E(String message) { super(message); }}// class E

參考答案

無參考答案

內容推薦

內容推薦