更多"给出下列的程序段,则哪个选项返回true ( ) String "的相关试题:
[单项选择]给出下列的代码,则以下哪个选项返回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 s = "hello" ; char c[] = { 'h' ,'e','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. s.equals(t);
B. t.equals(c);
C. s = =t
D. t = = c;
[单项选择]给出下列的程序段,则哪个选项是类A合理的内部类 ( ) class A{ protected int i; A(int i){ this.i=i;
A. classB { }
B. class B extendsA { }
C. class B extends A{ B(){Systeouprintln("i="+1);} }
D. class A { }
[单项选择]给出下面的代码,则以下( )选项返回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;
[单项选择]下列程序段的输出结果是 String MyStr = "Hello,"; MyStr = MyStr + "World!"; System.out.println(MyStr);
A. Hello,World!
B. Hello,
C. World!
D. 该程序段有语法错误
[单项选择]下列程序段的输出结果是( )。
String MyStr = "Hello,";
MyStr = MyStr + "World!";
System.out.println(MyStr);
A. Hello,World!
B. Hello,
C. World!
D. 该程序段有语法错误