int index = 1; String [] test = new String[3]; String foo = test[index]; What is the result?()
以下代码创建几个对象() String s1='bc';String s2='bc';
连续执行命令test“string1”=“string2”echo$?则最后的输出结果是()
交换两个string类对象所表示的字符串的内容,应该使用string类的()函数。
Which expressions will evaluate to true if preceded by the following code?() String a = "hello"; String b = new String(a); String c = a; char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };
类Student的声明如下: package com.school class Student{ String name; int age; Student(String name,int age){ //code } void study(String subject){ / /code } } 正确调用方法study(String subject)的是哪项?()
int index = 1; String test = new String; String foo = test[index]; What is the result?()
将一个string类对象赋予新值,应该使用string类的()函数。
请问如下哪些语句正确?(多选)A: String s1=”abc”; String s2=”abc”;则s1= =s2B: String[] s=”abc”;C: new String s=”abc”;D: String s=new String(“abc”);
定义了一个Function过程 Function StrCat(a As String, b As String) as String,则正确调用Function过程的语句是_______。
下面程序的运行结果是_________ String s1 = new String( “abc”); String s2 = new String( “abc”); System.out.println(s1==s2); String s3 = “ 你好吗 ”; String s4 = ” 你”; String s5 = ” 好吗 ”; System.out.println( “ 你好吗 ”==(”你”+”好吗 ”)) ;
对于如下代码,下列哪个叙述是正确的?public class E {public static void main (String args[]) {String s1 = args[1];String s2 = args[2];String s3 = args[3];System.out.println(s3);}}
执行下列代码后,哪个结论是正确的 String[] s=new String[10];
先阅读下面的程序片段:String str1=new String(\java\);String str2=new String(\java\);StringBuffer str3=new StringBuffer(\java\);对于上述定义的变量,以下表达式的值为true的是哪个?( )
阅读下面的程序class StringDemo{public static void main(String[] args){String s1 = “a”;String s2 = “b”;show(s1,s2);System.out.println(s1+s2);}public static void show(String s1,String s2){s1 = s1 +”q”;s2 = s2 + s1;}}下列选项中,程序的运行结果是()
阅读下面的程序,选择正确的答案?() class StringDemo{ public static void main(String[] args){ String s1 = “a”; String s2 = “b”; show(s1,s2); System.out.println(s1+s2); } public static void show(String s1,String s2){ s1 = s1 +”q”; s2 = s2 + s1; } }
执行下面的代码会引发()异常。 String str = null; String strTest = new String(str);
执行下面代码后,( )结论是正确的. String[] s=new String[10];
String s = new String("xyz"),以下( )语句将改变s的值。
在某类的公共部分有声明string operator++();和string operator++(int);则说明A.string operator
下列的哪个程序段可能导致错误?()A.String s="hello"; String t="good"; String k=s+t;B.String
String s = new String();创建了几个String Object()
执行”String[] s = new String[10];”语句后,结论正确的是()
var a_number=100;var a_string=new String(a_number);a_string.mystr=”javascript”;alert(a_string.mystr);
执行下列代码后,哪个结论是正确的 String()s=new String