表达式”hello” instanceof String返回的值是哪项?()A、 trueB、 falseC、 1D、 0E、 hello
表达式”hello” instanceof String返回的值是哪项?()
- A、 true
- B、 false
- C、 1
- D、 0
- E、 hello
相关考题:
假设有以下代码: 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"));
设a=2,b=3,c=4,d=5,表达式a>b and cc的值是( )A.trueB.falseC.-1D.1 设a=2,b=3,c=4,d=5,表达式ab and c=d or= a=c的值是( )A.trueB.falseC.-1D.1
语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0SXB 语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0D.1
下列的哪个程序段可能导致错误?A.String s = "hello"; String t = "good"; String k = s + t;B.String s = "hello"; String t; t = s[3] + "one";C.String s = " hello "; String standard = s.toUpperCase( );D.String s = "hello"; String t = s + "good";
以下( )表达式是不合法的。A.string x="hello";int y=9;x+=y;B.string x="hello";int y=9;if(x=y){}C.string x="hello";int y=9;x=x+y;D.string x=null;inty=(x!=null)(x.length()>0)?x.length():0;
下列选项中,()是正确的表达式。 A、% String s = “hello world ” ;% B、% = “hello world ” ;% C、% = “hello world ” % D、% ! “hello world ” %
Sql server提供了一些字符串函数,以下说法错误的是()。A、selec tright(’hello’,3)返回值为:helB、selec tltrim(rtrim(’hello’))返回值为:hello(前后都无空格)C、selec treplace(’hello’,’e’,’o’)返回值为:holloD、selec tlen(’hello’)返回值为:5
单选题SQL server提供了一些字符串函数,以下说法错误的是()。Aselectright(’hello’,3)返回值为:helBselectltrim(rtrim(’hello’))返回值为:hello(前后都无空格)Cselectreplace(’hello’,’e’,’o’)返回值为:holloDselectlen(’hello’)返回值为:5
单选题下列选项中,()是正确的表达式。A% String s = “hello world ” ;% B% = “hello world ” ;% C% = “hello world ” % D% ! “hello world ” %