大学MOOC 面向对象程序设计(基于Java)(华东师范大学)1464096177 最新慕课完整章节测试答案
第九章Java异常和异常处理
第九章Java异常和异常处理测验
1、单选题:
给出如下代码段:try { int x = Integer.parseInt("two"); }下列哪个可以作为catch的异常?
选项:
A: ClassCastException
B: IllegalStateException
C: NumberFormatException
D: ExceptionInInitializerError
答案: 【 NumberFormatException】点我阅读全文
