万能百科  > 计算机   > 

[单项选择题] 给出下列的程序段,则哪个选项返回true ( ) String s="hello"; String t="hello"; char c

2021-07-20   

[单项选择题] 给出下列的程序段,则哪个选项返回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

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签