阿摩線上測驗 登入

申論題資訊

試卷:103年 - 103 鐵路特種考試_高員三級_資訊處理:程式語言#24841
科目:程式語言
年份:103年
排序:0

申論題內容

三、請問下列 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