15. **(异常的捕获和抛出)有以下代码: import java.io.*; import java.sql.*; public class TestMyException { public static void ma() throws IOException { try { System.out.println(\); mb(); System.out.println(\); System.out.println(\); throw new IOException(e.getMessage()); System.out.println(\); System.out.println(e.getMessage()); public static void main(String args[]) { } try { } System.out.println(\); ma(); System.out.println(\); System.out.println(\); System.out.println(e.getMessage()); } catch (Exception e) { } catch (SQLException e) { } catch (Exception e) { } } } public static void mb() throws SQLException { } throw new SQLException(\); 问:该程序输出结果是什么?
16. **(异常的捕获和抛出)有以下代码 public class TestException { } public static void ma() { } System.out.println(\); throw new NullPointerException(); System.out.println(\); public static void main(String args[]) { } try { } System.out.println(\); ma(); System.out.println(\); System.out.println(\); } catch (Exception e) { 选择正确答案: A. 编译出错
B. 编译正常,输出main1 ma1 In Catch C. 编译正常,运行时出错
17. **(异常的捕获和抛出)有如下代码 class TestException { } catch (Exception e) { } public static void main(String args[]) { try { } ma(); } public static void ma() throws IOException { } 下面哪些代码放在处可以编译通过? A. catch(NullPointerException npe){} B. catch(IOException ioe){} C. catch(SQLException sqle){}

