网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面( )不是String类提供的合法的方法。

A、equals(String)

B、trim()

C、append()

D、indexOf()


参考答案

更多 “ 下面( )不是String类提供的合法的方法。A、equals(String)B、trim()C、append()D、indexOf() ” 相关考题
考题 在Java中,下列方法()是一个String对象所具有的。 A.equals(Object)B.trim()C.round()D.toString()

考题 在Java语言中,能够实现字符串连接的方法是()A.String sub string(intstart point)B.String concat(Strings)C.String replace(charold,charnew)D.String trim()

考题 下列方法中,不属于类 String 的方法是A ) tolowerCase ()B ) valueof ()C ) charAt ()D ) append ()

考题 关于slice或map操作,下面正确的是() A.var s []ints = append(s,1)B.var m map[string]intm["one"] = 1C.var s []ints = make([]int, 0)s = append(s,1)D.var m map[string]intm = make(map[string]int)m["one"] = 1

考题 String s=”Example String”; 下面哪些语句是正确的?() A.s>>>=3;B.int i=s.length();C.s[3]=”x”;D.String short_s=s.trim();E.String t=”root”+s;

考题 下面哪项不是File类的方法() A、StringgetAbsolutePath()B、String[]list()C、booleancanRead()D、voidwrite(byte[]b)

考题 包装类的特点() A、提供了valueOf(String),tostring()B、对象中所包装的值是可以改变的C、equals()方法进行了覆盖D、有的类提供了一些使用的方法以操作方便,例如Parse类就提供了parseDouble()、max、min方法等

考题 下列方法中,不属于类String的方法是A.toLowerCase()B.valueOf()C.charAt()D.append()

考题 下列方法中,不属于类String的方法是( )。A.toLowerCase( )B.value( )f( )C.charAt( )D.append( )

考题 下面哪个是main()方法的合法参数()A、char args[]B、char args[][]C、String arg[]D、String args

考题 String类的IndexOf()方法返回的类型是() A.Int16B.Int32C.intD.long

考题 在Java中,下列方法()是一个String对象所具有的。A、equals(Object)B、trim()C、round()D、toString()

考题 String类Trim方法可以删除字符串开始和结尾的所有空格。

考题 String类的IndexOf()方法返回的类型是()A、Int16B、Int32C、intD、long

考题 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’ };  A、(a == "Hello")B、(a == b)C、(a == c)D、a.equals(b)E、a.equals(d)

考题 下列不是 String 类的方法的是()A、charAt(int index)B、indexOf(String s)C、beginWith(String s)D、endsWith(String s)

考题 设有定义:String s=“World”;,下列语句错误的是()。A、int m=s.indexOf(‘r’);B、char c=s.charAt(0);C、int n=s.length();D、String str=s.append(‘2’);

考题 下面哪项不是response对象的方法()A、set Content Type(String contentTypestr)B、set Header(String headername,String headervalue)C、get Parameter(String str)D、send Error(int errorcode)

考题 关于String和StringBuffer,下面那些是正确的:()A、常量字符串使用String,非常量字符串使用StringBuffer。B、使用StringBuffer的时候设置初始容量。C、尽量使用StringTokenizer代替indexOf()和substring()。D、尽量不要使用StringBuffer,StringTokenizer类。

考题 下面哪个不是String类的方法?()A、subString()B、startsWith()C、toString()D、toUpperCase()

考题 有语句String s=”hello world”; ,以下操作哪个是不合法的()A、int i=s.length();B、s=3;C、String ts=s.trim();D、String t=s+”!”

考题 String s= "hello";     String t = "hello";  char c[] = {’h’,’e’,’l’,’l’,’o’} ;     Which return true?()   A、 s.equals(t);B、 t.equals(c);C、 s==t;D、 t.equals(new String("hello"));E、 t==c;

考题 多选题String s= "hello";     String t = "hello";  char c[] = {’h’,’e’,’l’,’l’,’o’} ;     Which return true?()As.equals(t);Bt.equals(c);Cs==t;Dt.equals(new String(hello));Et==c;

考题 多选题String类的IndexOf()方法返回的类型是()AInt16BInt32CintDlong

考题 单选题下面()不是String类提供的合法的方法。A equals(String)B trim()C append()D indexOf()

考题 单选题下面哪个不是String类的方法?()A subString()B startsWith()C toString()D toUpperCase()

考题 多选题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’ };A(a == Hello)B(a == b)C(a == c)Da.equals(b)Ea.equals(d)