给出下列的程序段,则哪个选项返回true ( ) String s="hell
问题:
给出下列的程序段,则哪个选项返回true ( )
String s="hello";
String t="hello";
char c[]='h','e','l','l','o';
A.equals(t);
B.Lequals(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.Lequals(c);
C.s==t;
D.t==c;