更多"给出下列的代码则以下哪个选项返回true String s = "的相关试题:
[单项选择]给出下列的代码,则以下哪个选项返回true String s="hello"; String t="hello"; char c []= {'h','e','1','1','o'};
A. equals(;
B. equals(;
C. s==t;
D. t==c;
[单项选择]给出下列的代码,则以下哪个选项返回true
String s = "hello";
String t = "hello";
char c[ ] = {''h'',''e'',''l'',''l'',''o''};
A. s.equals(t);
B. t.equals(c);
C. s = =t
D. t = = c;
[单项选择]给出下面的代码,则以下( )选项返回true。 String s="hello"; String t="hello"; Char c[]={'h','e','l','l','o'};
A. equals ( ;
B. equals ( ;
C. s==t;
D. t==c;
[单项选择]给出下列的代码,则以下( )选项返回true。 String s="hello"; String t="hello": char c[]={'h','e','l','l','o',};
A. equals(;
B. equals(;
C. s==t;
D. t==c;
[单项选择]给出下列的程序段,则哪个选项返回true ( ) String s="hello"; String t="hello"; char c[]={'h','e','l','l','o'};
A. equals(;
B. Lequals(;
C. s==t;
D. t==c;
[单项选择]假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。
A. equals(;
B. equals(;
C. s==t;
D. equals(new String("hello"));
[单项选择]给出下列的程序代码片段,下列的哪个选项是不正确的
① public void create( ) {
② Vector my;
③ my=new Vector ( );
④ }
A. 创建了字符串对象后,字符串所代表的文本根据情况可改变
B. 字符串由java.lang.String和java.lang.StringBuffer定义
C. 字符串常用数组存储,处理字符串实际上就是对数组元素的分别处理,要注意数组下界不要越界
D. 在Java语言中,字符串是作为对象来处理的