题目内容
(请给出正确答案)
[主观题]
下列代码段的执行结果是()。 public class Test{public static void main(String args[ ]){ Strin
下列代码段的执行结果是()。 public class Test { public static void main(String args[ ]) { String s1= new String("hello"); String s2= new String("hello"); System.out.println(s1==s2); System.out.println(s1.equal(s2)); } }
A.true false
B.true true
C.false true
D.false false
提问人:网友gsprin
发布时间:2022-01-07