给出下面的代码,则以下( )选项返回true。 String s="hello"
题型:单项选择题
问题:
给出下面的代码,则以下( )选项返回true。
String s="hello";
String t="hello";
Char c[]='h','e','l','l','o';
A.equals (t) ;
B.equals (c) ;
C.s==t;
D.t==c;
给出下面的代码,则以下( )选项返回true。
String s="hello";
String t="hello";
Char c[]='h','e','l','l','o';
A.equals (t) ;
B.equals (c) ;
C.s==t;
D.t==c;