[单项选择题] 对于下面一段代码的描述中,正确的是______。public class ex36{ public static void run main
2021-07-20
[单项选择题] 对于下面一段代码的描述中,正确的是______。public class ex36{ public static void run main(String[] args) throws Excepion { method(); } static void method() throws Exception try { System.out.println("test"); } finally { System.out.println ("finally"); } } }
A.代码编译成功,输出“test”和“fmally”
B.代码编译成功,输出“test”
C.代码实现选项A中的功能,之后Java停止程序运行,抛出异常,但是不进行处理
D.代码不能编译
正确答案:A
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
