![](https://static.youtibao.com/asksite/comm/h5/images/m_q_title.png)
String s = "Hello";s = s + " world!";这两行代码执行后, 原始的String 对象中的内容到底变
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
![](https://static.youtibao.com/asksite/comm/h5/images/solist_ts.png)
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(new String("hello"));
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
A.String str = s.append(“aaa”);
B.String str = s.concat(s);
C.String str = s.substring(3);
D.以上语句都不会
A.s>>>=1;
B.int i = s.length();
C.String ts = s.trim();
D.String t = s+”!”;
A.s>>>=1;
B.int i=s.length();
C.String ts=s.trim();
D.String t=s+”!”;
A.HHHH
B.Hello,world!
C.HHHHHello
D.HHHH,world!
A.print 'Hello, this's Tom.'
B.Print 'Hello, World!'
C.print 'Hello, I/'m Tom.'
D.print 'Hello, ' print 'World!'
public class Something {
void doSomething () {
private String s = "";
int l = s.length();
}
}
有错吗?
A.How are you?
B.That’s right
C.Good to see you
D.Just SO-SO