试题详情
- 多项选择题 现有 1. class Calc { 2. public static void main(String [] args) { 3. try { 4. int x = Integer.parselnt ("42a") ; 5. //insert code here 6. System.out.print ("oops"); 7. } 8. } 9. } 下面哪两行分别插入到第五行,会导致输 "oops" ? ()
A、 } catch (IllegalArgumentException e) {
B、 } catch (IllegalStateException c) {
C、 } catch (NumbelFormatException n) {
D、 } catch (ClassCastException c) {
- A,C
关注下方微信公众号,在线模考后查看
热门试题
- In which
- 下面正确的创建 Socket 的语句是(
- Your web
- Which interfac
- 什么是单例模式(Singleton)?
- 在Java中,关于HashMap类的描述
- Given the&ensp
- 用sin(x)≈x-x^3/3!+x^5
- Given that&ensp
- 计算s=2!+4!+8!+11!。(首先
- What is th
- 以下关于return语句的描述,错误的是
- 针对Set
- 如果源文件中包含public类,源文件的
- 程序员想要创建一个名为MyThread
- When creating&
- What is th
- Which two̳
- 1. public&ensp
- 现有: class&ens