题目内容
(请给出正确答案)
[主观题]
现有: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?()
答案
查看答案