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

package&ensp;foo;<br /> public&ensp;class&ensp;Outer&ensp;(&ensp;<br /> public&ensp;static&ensp;class&ensp;Inner&ensp;(&ensp;<br /> )&ensp;<br /> )&ensp;&ensp;<br /> Which&ensp;statement&ensp;is&ensp;true?&ensp;()&ensp;

A、 An instance of the Inner class can be constructed with “new Outer.Inner ()”

B、 An instance of the inner class cannot be constructed outside of package foo.

C、 An instance of the inner class can only be constructed from within the outer class.

D、 From within the package bar, an instance of the inner class can be constructed with “new inner()”

更多“ package&ensp;foo;<br /> public&ensp;class&ensp;Outer&ensp;(&ensp;<br /> public&ensp;static&ensp;class&ensp;Inner&ensp;(&ensp;<br /> )&ensp;<br /> )&ensp;&ensp;<br /> Which&ensp;statement&ensp;is&ensp;true?&ensp;()&ensp;”相关的问题
第2题

A、&ensp;Compilation&ensp;fails.&nbsp;&nbsp;B、&ensp;An&ensp;instance&ensp;of&ensp;the&ensp;Inner&ensp;class&ensp;can&ensp;be&ensp;constructed&ensp;with&ensp;“new&ensp;Outer.Inner()”.&nbsp;&nbsp;C、&ensp;An&ensp;instance&ensp;of&ensp;the&ensp;Inner&ensp;class&ensp;cannot&ensp;be&ensp;constructed&ensp;outside&ensp;of&ensp;package&ensp;foo.&nbsp;&nbsp;D、&ensp;An&ensp;instance&ensp;of&ensp;the&ensp;Inner&ensp;class&ensp;can&ensp;be&ensp;constructed&ensp;only&ensp;from&ensp;within&ensp;the&ensp;Outer&ensp;class.&nbsp;&nbsp;E、&ensp;From&ensp;within&ensp;the&ensp;package&ensp;foo,&ensp;and&ensp;instance&ensp;of&ensp;the&ensp;Inner&ensp;class&ensp;can&ensp;be&ensp;constructed&ensp;with&ensp;“new&ensp;Inner()”.&nbsp;&nbsp;

点击查看答案
第3题

A、&ensp;Float&ensp;foo&ensp;=&ensp;-1;&nbsp;&nbsp;B、&ensp;Float&ensp;foo&ensp;=&ensp;1.0;&nbsp;&nbsp;C、&ensp;Float&ensp;foo&ensp;=&ensp;42e1;&nbsp;&nbsp;D、&ensp;Float&ensp;foo&ensp;=&ensp;2.02f;&nbsp;&nbsp;E、&ensp;Float&ensp;foo&ensp;=&ensp;3.03d;&nbsp;&nbsp;F、&ensp;Float&ensp;foo&ensp;=&ensp;0x0123;&nbsp;&nbsp;

点击查看答案
第8题

A、&ensp;float&ensp;foo&ensp;=&ensp;-1;&nbsp;&nbsp;B、&ensp;float&ensp;foo&ensp;=&ensp;1.0;&nbsp;&nbsp;C、&ensp;float&ensp;foo&ensp;=&ensp;42el:&nbsp;&nbsp;D、&ensp;float&ensp;foo&ensp;=&ensp;2.02f:&nbsp;&nbsp;E、&ensp;float&ensp;foo&ensp;=&ensp;3.03d:&nbsp;&nbsp;

点击查看答案
第9题

A、public&ensp;void&ensp;foo(){&ensp;}&nbsp;&nbsp;B、public&ensp;int&ensp;foo(){return&ensp;3;}&nbsp;&nbsp;C、public&ensp;Two&ensp;foo(){return&ensp;this;}&nbsp;&nbsp;D、public&ensp;One&ensp;foo(){return&ensp;this;}&nbsp;&nbsp;E、public&ensp;Object&ensp;foo(){return&ensp;this;}&nbsp;&nbsp;

点击查看答案
第10题

A、A.&ensp;Int&ensp;foo&ensp;=&ensp;(int)&ensp;Math.max(bar);&nbsp;&nbsp;BB.&ensp;Int&ensp;foo&ensp;=&ensp;(int)&ensp;Math.min(bar);&nbsp;&nbsp;C、C.&ensp;Int&ensp;foo&ensp;=&ensp;(int)&ensp;Math.abs(bar);&nbsp;&nbsp;D、D.&ensp;Int&ensp;foo&ensp;=&ensp;(int)&ensp;Math.ceil(bar);&nbsp;&nbsp;E、E.&ensp;Int&ensp;foo&ensp;=&ensp;(int)&ensp;Math.floor(bar);&nbsp;&nbsp;F、F.&ensp;Int&ensp;foo&ensp;=&ensp;(int)&ensp;Math.round(bar);&nbsp;&nbsp;

点击查看答案
客服
TOP

请使用微信扫码支付

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