搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

1.&#8194;public&#8194;class&#8194;a&#8194;{&#8194;<br /> 2.&#8194;public&#8194;void&#8194;method1()&#8194;{&#8194;<br /> 3.&#8194;try&#8194;{&#8194;<br /> 4.&#8194;B&#8194;b=new&#8194;b();&#8194;<br /> 5.&#8194;b.method2();&#8194;<br /> 6.&#8194;//&#8194;more&#8194;code&#8194;here&#8194;<br /> 7.&#8194;}&#8194;catch&#8194;(TestException&#8194;te)&#8194;{&#8194;<br /> 8.&#8194;throw&#8194;new&#8194;RuntimeException(te);&#8194;<br /> 9.&#8194;}&#8194;<br /> 10.&#8194;}&#8194;<br /> 11.&#8194;}&#8194;<br /> 1.&#8194;public&#8194;class&#8194;b&#8194;{&#8194;<br /> 2.&#8194;public&#8194;void&#8194;method2()&#8194;throws&#8194;TestException&#8194;{&#8194;<br /> 3.&#8194;//&#8194;more&#8194;code&#8194;here&#8194;<br /> 4.&#8194;}&#8194;<br /> 5.&#8194;}&#8194;<br /> 1.&#8194;public&#8194;class&#8194;TestException&#8194;extends&#8194;Exception&#8194;{&#8194;<br /> 2.&#8194;}<br /> &#8194;Given:&#8194;<br /> 31.&#8194;public&#8194;void&#8194;method()&#8194;{&#8194;<br /> 32.&#8194;A&#8194;a=ne

A、 Line 33 must be called within a try block.

B、 The exception thrown by method1 in class a is not required to be caught.

C、 The method declared on line 31 must be declared to throw a RuntimeException.

D、 On line 5 of class a, the call to method2 of class b does not need to be placed in a try/catch block.

更多“ 1.&#8194;public&#8194;class&#8194;a&#8194;{&#8194;<br /> 2.&#8194;public&#8194;void&#8194;method1()&#8194;{&#8194;<br /> 3.&#8194;try&#8194;{&#8194;<br /> 4.&#8194;B&#8194;b=new&#8194;b();&#8194;<br /> 5.&#8194;b.method2();&#8194;<br /> 6.&#8194;//&#8194;more&#8194;code&#8194;here&#8194;<br /> 7.&#8194;}&#8194;catch&#8194;(TestException&#8194;te)&#8194;{&#8194;<br /> 8.&#8194;throw&#8194;new&#8194;RuntimeException(te);&#8194;<br /> 9.&#8194;}&#8194;<br /> 10.&#8194;}&#8194;<br /> 11.&#8194;}&#8194;<br /> 1.&#8194;public&#8194;class&#8194;b&#8194;{&#8194;<br /> 2.&#8194;public&#8194;void&#8194;method2()&#8194;throws&#8194;TestException&#8194;{&#8194;<br /> 3.&#8194;//&#8194;more&#8194;code&#8194;here&#8194;<br /> 4.&#8194;}&#8194;<br /> 5.&#8194;}&#8194;<br /> 1.&#8194;public&#8194;class&#8194;TestException&#8194;extends&#8194;Exception&#8194;{&#8194;<br /> 2.&#8194;}<br /> &#8194;Given:&#8194;<br /> 31.&#8194;public&#8194;void&#8194;method()&#8194;{&#8194;<br /> 32.&#8194;A&#8194;a=ne”相关的问题
第3题

A、 Public double methoda();  B、 Static void methoda (double d1) {}  C、 Public native double methoda();  D、 Abstract public void methoda();  E、 Protected void methoda (double d1){}  

点击查看答案
第5题

A、A. Public double methoda();  B、B. Static void methoda (double d1) {}  C、C. Public native double methoda();  D、D. Abstract public void methoda();  E、E. Protected void methoda (double d1){}  

点击查看答案
第8题

A、A.Create a Failover Cluster and then add MBX1 and MBX2 to the Failover Cluster  B、B.Create a database availability group (DAG) and then add MBX1 and MBX2 to the DAG  C、C.Create a public folder database on MBX2 and then modify the replication settings on each public folder  D、D.Create a public folder database on MBX2 and then modify the replication settings on the public folder database  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服