问题详情

答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关

现有:1.classPropeller2{2.&ensp


现有:1.classPropeller2{2.&ensp

现有:

1.classPropeller2{

2.pulolicstaticvoidmain(String[]args)//addcodehere?

3.{newPropeller2().topGo();}

4.

5.voidtopGo()//addcodehere?

6.{middleGo();}

7.

8.voidmiddleGo()//addcodehere?

9.{go();System.out.println("latemiddle");}

voidgo()//addcodehere?

12.{thrownewException();}

13.}

为使代码通过编译,需要在哪一行加入声明throwsException?()

参考答案
您可能感兴趣的试题