题目
A、cd
B、de
C、d
D、e
第1题
第2题
A.int i=s.length();
B.s[3]=”x”;
C.String short_s=s.trim();
D.String t=”root”+s;
第3题
A.String s = "Gone with the wind"; String t = " good "; String k =s + t;
B.String s = "Gone with the wind"; String t; t = s[3] + "one";
C.String s = "Gone with the wind"; String standard =s.toUpperCase();
D.String s = "home directory"; String t
第4题
String s = new String(xyz);创建了几个String Object
第5题
A.String s1=”abc”; String s2=”abc”;则s1= =s2
B.String[] s=”abc”;
C.new String s=”abc”;
D.String s=new String(“abc”);
第6题
A.String s="你好";int i=3; s+=i;
B.String s="你好";int i=3; if(i==s){ s+=i};
C.String s="你好";int i=3; s=i+s;
D.String s="你好";int i=3; s=i+;
第7题
String s = new String("xyz");创建了几个String Object?
二者之间有什么区别?
第8题
A.getParameter(String s)
B.getValue(String s)
C.getParameterNames(String s)
D.getParameterValue(String s)
第9题
下面的哪些程序段可能导致错误? () Ⅰ: String s = "Gone with the wind"; String t = "good "; String k = s + t; Ⅱ: String s = "Gone with the wind"; String t; t = s[3] + "one"; Ⅲ: String s = "Gone with the wind"; String standard = s.toUpperCase(); Ⅳ: String s = "home directory"; String t = s-"directory":
A.Ⅱ、Ⅲ
B.Ⅱ、Ⅳ
C.Ⅰ、Ⅳ
D.Ⅲ、Ⅳ
为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!