万能百科  > 计算机   > 

[单项选择题] 下列代码的执行结果是( )。 public class test5 public static void main (String arg

2021-07-20   

[单项选择题] 下列代码的执行结果是( )。

public class test5

public static void main (String args[])

String s1=new String("hello");

String s2=new String("hello");

System.out.prim(s1==s2);

System.out.print(",");

System.out.println(s1.equals(s2));

A.true,false

B.true,true

C.false,true

D.false,false

正确答案:

C

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

标签