Which of the following statements is NOT true?
A.Education is closely connected with the social demands.
B.Education deprives people of the political rights.
C.Education has many problems to be solved.
D.People get education because they want to take advantage of other people.
第1题
A.String str = s.append(“aaa”);
B.String str = s.concat(s);
C.String str = s.substring(3);
D.以上语句都不会
第2题
A.s.append(“x”);
B.s.concat(“y”);
C.s.substring(3);
D.以上语句都不会
第3题
A、String s = "itcast";
B、String s = new String("itcast");
C、String s = new String(new char {'i','t','c','s','t'});
D、int[]arr= {1,2,23,4,5};
第4题
A.s.append("a")
B.s.concat(s)
C.s.subString(1)
D.以上语句都不对
第5题
A.string s{'alohaworld'};
B.string s = string{"alohaworld"};
C.char* p = "alohaworld"; string s(p);
D.string s{'a','l','o','h','a','w','o','r','l','d'};
E.string s('a','l','o','h','a','w','o','r','l','d');
第6题
String s = new String(xyz);创建了几个String Object
第7题
String s = new String("xyz");创建了几个String Object?
第8题
String s = new String(xyz);创建了几个String Object
第9题
String s = new String("xyz");创建了几个String Object?
第10题
写出以下程序的运行结果? public class Test{ public static void main(String argv[]){ String s = new String("hello"); myMethod(s); System.out.println("s=" + x); } public static void myMethod(String s){ s = s + "!"; } }
A、s=hello!
B、s=hello
C、hello!
D、hello
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!