下列代码的执行结果是______。 public class ex55 { public static void main(String args[] ) { St

admin2008-01-11  28

问题 下列代码的执行结果是______。      public class ex55      {           public static void main(String args[] )           {                 String s1=new String("hello");                 String s2=new String("hello");                 System.out.print (s1==s2);                 System.out.print (",");                 System.out.println (s1.equals (s2));           }      }

选项 A、true, false
B、true, true
C、false, true
D、false, false

答案C

解析
转载请注明原文地址:https://jikaoti.com/ti/Qkb0FFFM
0

相关试题推荐
最新回复(0)