试题详情
- 单项选择题 static void test() throws RuntimeException { try { System.out.print(”test “); throw new RuntimeException(); } catch (Exception ex) { System.out.print(”exception “); } } public static void main(String[] args) { try { test(); } catch (RuntimeException ex) { System.out.print(”runtime “); } System.out.print(”end “); } What is the result?()
A、 test end
B、 Compilation fails.
C、 test runtime end
D、 test exception end
E、 A Throwable is thrown by main at runtime.
- D
关注下方微信公众号,在线模考后查看
热门试题
- 现有: Public/pr
- public class&e
- 根据整型参数m的值,计算公式t=1-1/
- public class&e
- What is th
- What is th
- 1. public&ensp
- Which three&ens
- 1. public&ensp
- Class TestExce
- package foo;&e
- Which two̳
- public class&e
- 已知: 下面哪些语句是和第2行等价的(
- 字符串的append函数可以添加多种内
- 有关new关键字的描述正确的是哪项?()
- Whichtwo scena
- Fibonacci数列的前几个数为:0,
- 哪两个java.lang.Thread&
- 1. public&ensp