问题 单项选择题

给出下列的程序段,则哪个选项返回true ( )
String s="hello";
String t="hello";
char c[]='h','e','l','l','o';

A.s.equals(t);
B.Lequals(c);
C.s==t;

D.t==c;

答案

参考答案:A

选择题
单项选择题