题目:下面哪个结果是正确的?() public class Testjava{ public static void main(String[] args){ String s1,s2; s1 = new String("mycode"); s2 = new String ("mycode"); System.out.println(s1.equals(s2)); System.out.println(s1==s2); String s3,s4; s3 = "mycodes"; s4 = "mycodes"; System.out.println(s3.equals(s4)); System.out.println(s3==s4); } }
A. true true true true
B. true false true false
C. true false true true
D. false true true true
答案:评论后可见此内容