单选题有语句Strings=”helloworld”;,以下操作哪个是不合法的?()Ainti=s.length()Bs=3CStringts=s.trim()DStringt=s+”!”
单选题
有语句Strings=”helloworld”;,以下操作哪个是不合法的?()
A
inti=s.length()
B
s>>>=3
C
Stringts=s.trim()
D
Stringt=s+”!”
参考解析
解析:
暂无解析
相关考题:
当你执行以下查询语句:SELECT employeesno,ename FROM employees WHERE employeesno=7782 OR employeesno=7876;在WHERE语句中,以下哪个操作符可以取代OR?() A.INB.BETWEEN……andC.LIKED.=
写“HelloWorld”的正确javascript语法是:A、document.write("HelloWorld")B、"HelloWorld"C、response.write("HelloWorld")D、("HelloWorld")
publicclassX{publicstaticvoidmain(String[]args){strings=newstring(Hello”);modify(s);System.out.printIn(s);}publicstaticvoidmodify(Strings){s+=world!”;}}Whatistheresult?() A.Theprogramrunsandprints“Hello”B.Anerrorcausescompilationtofail.C.Theprogramrunsandprints“Helloworld!”D.Theprogramrunsbutabortswithanexception.
publicclassX{publicstaticvoidmain(Stringargs){strings=newstring(Hello”);modify(s);System.out.printIn(s);}publicstaticvoidmodify(Strings){s+=world!”;}}Whatistheresult?() A.Theprogramrunsandprints“Hello”B.Anerrorcausescompilationtofail.C.Theprogramrunsandprints“Helloworld!”D.Theprogramrunsbutabortswithanexception.
以下正确输出helloworld的是() A.printf("helloworld");B.printf("helloworld")C.print("helloworld");D.print("helloworld")
使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。A、字符串"helloworld"中不包含G字符,indexOf返回0B、字符串"helloworld"中不包含G字符,indexOf返回nullC、字符串"helloworld"中不包含G字符,indexOf返回-1D、字符串"helloworld"中不包含G字符,indexOf返回1
for(;;){printf("helloworld/n");}关于本程序段说法正确的是()A、for语句使用有误,两个分号中间的表达式不能省略B、这是一个死循环,不停的输出helloworld。C、这语句还可以简化,省略掉两个分号。D、/n是一种转义字符,作用是水平制表。
当你执行以下查询语句:SELECT employeesno,ename FROM employees WHERE employeesno=7782 OR employeesno=7876;在WHERE语句中,以下哪个操作符可以取代OR?()A、INB、BETWEEN……andC、LIKED、=
在java中,下列()语句不能通过编译。A、Strings="john"+"was"+"here";B、Strings="john"+3;C、floatf=5+5.5;D、inta=3+5;
下列字符串赋值语句中,不能正确把字符串“HelloWorld”赋给数组的语句是()A、chara1[]={’H’,’e’,’l’,’l’,’o’,’’,’W’,’o’,’r’,’l’,’d’,’/0’};B、chara2[15];strcpy(a2,"HelloWorld");C、chara3[15];a3="HelloWorld";D、chara4[10]={"HelloWorld"};
有语句String s=”hello world”; ,以下操作哪个是不合法的()A、int i=s.length();B、s=3;C、String ts=s.trim();D、String t=s+”!”
单选题for(;;){printf("helloworld/n");}关于本程序段说法正确的是()Afor语句使用有误,两个分号中间的表达式不能省略B这是一个死循环,不停的输出helloworld。C这语句还可以简化,省略掉两个分号。D/n是一种转义字符,作用是水平制表。
单选题使用String对象的indexOf()方法查找字符串”helloworld”中是否包含G,下列语句描述正确的是()。A字符串helloworld中不包含G字符,indexOf返回0B字符串helloworld中不包含G字符,indexOf返回nullC字符串helloworld中不包含G字符,indexOf返回-1D字符串helloworld中不包含G字符,indexOf返回1
单选题创建字符串s:Strings=newString(“hello”);以下()语句将改变s。As.append(“aaa”)Bs.concat(s)Cs.substring(3)D以上语句都不会
单选题当你执行以下查询语句:SELECT employeesno,ename FROM employees WHERE employeesno=7782 OR employeesno=7876;在WHERE语句中,以下哪个操作符可以取代OR?()AINBBETWEEN……andCLIKED=
多选题下面哪个语句是正确的()Ashort s=256;BString s=‘Helloworld’;Cint x=012;Dchar c=“a”;