移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

现有:  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?()     

发布日期:2021-06-29

现有:  1.  class Propeller2  {  2.   pulolic static ...
A

只在第11行

B

在第8行和第11行

C

在第5行、第8行和第11行

D

在第2行、第5行、第8行和第11行

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!