试题详情
- 单项选择题 现有: 1. class Propeller2 { 2. pulolic static void main (String[]args)//add code here? 3. { new Propeller2().topGo(); } 4. 5.void topGo() //add code here? 6. { middleGo(); } 7. 8.void middleGo() //add code here? 9. { go(); System.out.println ("late middle"); } void go() //add code here? 12. {throw new Exception(); } 13. } 为使代码通过编译,需要在哪一行加入声明throws Exception?()
A、只在第11行
B、在第8行和第11行
C、在第5行、第8行和第11行
D、在第2行、第5行、第8行和第11行
- D
关注下方微信公众号,在线模考后查看
热门试题
- String类的concat()方法与S
- 1. public&ensp
- You are b
- 哪两个java.lang.Thread&
- Which two̳
- Given a f
- Given: 11.<% 12.req
- public interfa
- 当2个或多个对象被添加作为同一个事件的监
- Which element&
- What is th
- float f[][][]&
- 11. public&ens
- 结构型模式中最体现扩展性的模式是()。
- 辗转相除法:从键盘输入两个数512113
- 以下关于复选框的描述中,错误的是?()
- 已知Sn=A1+A2+A3+...+An
- 在linux编程中,以下哪个TCP的套接
- Which keyword can pr
- class Foo&ensp