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

public&ensp;String&ensp;makinStrings()&ensp;{&ensp;<br /> String&ensp;s&ensp;=&ensp;&ldquo;Fred&rdquo;;&ensp;<br /> s&ensp;=&ensp;s&ensp;+&ensp;&ldquo;47&rdquo;;&ensp;<br /> s&ensp;=&ensp;s.substring(2,&ensp;5);&ensp;<br /> s&ensp;=&ensp;s.toUpperCase();&ensp;<br /> return&ensp;s.toString();&ensp;<br /> }&ensp;<br /> How&ensp;many&ensp;String&ensp;objects&ensp;will&ensp;be&ensp;created&ensp;when&ensp;this&ensp;method&ensp;is&ensp;invoked?()&ensp;

A、 1

B、 2

C、 3

D、 4

E、 5

F、 6

更多“ public&ensp;String&ensp;makinStrings()&ensp;{&ensp;<br /> String&ensp;s&ensp;=&ensp;&ldquo;Fred&rdquo;;&ensp;<br /> s&ensp;=&ensp;s&ensp;+&ensp;&ldquo;47&rdquo;;&ensp;<br /> s&ensp;=&ensp;s.substring(2,&ensp;5);&ensp;<br /> s&ensp;=&ensp;s.toUpperCase();&ensp;<br /> return&ensp;s.toString();&ensp;<br /> }&ensp;<br /> How&ensp;many&ensp;String&ensp;objects&ensp;will&ensp;be&ensp;created&ensp;when&ensp;this&ensp;method&ensp;is&ensp;invoked?()&ensp;”相关的问题
第1题

A、&ensp;public&ensp;static&ensp;void&ensp;main(String[]&ensp;args){}  B、&ensp;public&ensp;static&ensp;void&ensp;main(String&ensp;args){}  C、&ensp;public&ensp;void&ensp;main(String[]&ensp;args){}  D、&ensp;public&ensp;static&ensp;int&ensp;main(String[]&ensp;args){}  

点击查看答案
第2题

A、A.public&ensp;static&ensp;void&ensp;main(String[]&ensp;args)  B、B.public&ensp;static&ensp;int&ensp;main(String[]&ensp;args)  C、C.public&ensp;void&ensp;main(String[]&ensp;args)  D、D.public&ensp;int&ensp;main(String[]&ensp;args)  

点击查看答案
第3题

A、public&ensp;void&ensp;main(String&ensp;args[])  B、public&ensp;void&ensp;static&ensp;main(String&ensp;args[])  C、public&ensp;static&ensp;main(String[]&ensp;argv)  D、final&ensp;public&ensp;static&ensp;void&ensp;main(String&ensp;[]&ensp;array)  E、public&ensp;static&ensp;void&ensp;main(String&ensp;args[])  

点击查看答案
第6题

A、A.&ensp;public&ensp;static&ensp;void&ensp;main(String[]&ensp;args){}  B、B.&ensp;public&ensp;static&ensp;void&ensp;main(){}  C、C.&ensp;public&ensp;static&ensp;void&ensp;main(String&ensp;args[]){}  D、D.&ensp;public&ensp;void&ensp;static&ensp;main(String[]&ensp;args){}  

点击查看答案
第7题

A、public&ensp;void&ensp;firePropertyChange(PropertyChangeListener&ensp;l,String&ensp;oldValue,&ensp;String&ensp;newValue)  B、public&ensp;void&ensp;firePropertyChange(String&ensp;propertyName,&ensp;Object&ensp;oldValue,&ensp;Object&ensp;newValue)  C、public&ensp;void&ensp;firePropertyChange(PropertyChangeSupport&ensp;changes)  D、public&ensp;void&ensp;firePropertyChange(Object&ensp;oldValue,&ensp;Object&ensp;newValue)  

点击查看答案
客服
TOP

请使用微信扫码支付

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