A-A+

给出下列的代码 则以下()选项返回true。 String s=hello; Strin

2022-08-06 06:29:13 问答库 阅读 176 次

问题详情

给出下列的代码,则以下()选项返回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

考点:选项,代码