String s = "hello";String t = "hello";char c[] = {'h','e
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(new String("hello"));
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(new String("hello"));
String s = "Hello";s = s + " world!";这两行代码执行后,
原始的String 对象中的内容到底变了没有?
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!'
A.How are you?
B.That’s right
C.Good to see you
D.Just SO-SO
判断:
public class test
{
private static String s="string";
public static void main(String a[])
{
String t="strin"+"g";
System.out.println(s==t);
}
}