[主观题]String s = new String("xyz");创建了几个String Object?二者之间有什么区别?
[试题]String s = new String("xyz");创建了几个String Object?二者之间有什么区别?
[试题]String s = "Hello";s = s + " world!";这两行代码执行后,原始的String 对象中的内容到底变了没有?
[试题]String s = "Hello";s = s + " world!";这两行代码执行后,原始的String 对象中的内容到底变了没有?
[单选题]下列程序段: String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); 的结果为A.falseB.trueC.1D.0
[单选题]创建字符串s:String s=new String("xyzy"):以下( )将改变s。A.s.append("a")B.s.concat("s")C.s.substring(3)D.以上语句都不会
[单选题]已知String str=new String ("Luck");,则下列关于str的操作中不合法的是( )。A.String s=str. toUpperCase()B.int i=Str. length;C.char s=str. charAt(2);D.String s="Good" +str;
[单选题]假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(new String("hello"));
[单选题]设有语句组:D.im S1 As String*5S1 = "VB Test"则S1的值为( )。A. VB TestB. VB TeC. VBTesD. BTest
[单选题]给出下列的代码,则以下( )选项返回true。 String s="hello"; String t="hello": char c[]={'h','e','l','l','o',};A.s.equals(t);B.t.equals(c);C.s==t;D.t==c;