下面 Java 代码的运行结果为()
public class Test { public static void main(String[] args) { String s1 = "nowcoder"; String s2 = "coder"; String s3 = ("now" + s2).intern(); System.out.println(s1.equals(s3)); System.out.println(s1 == s3); } }
public class Test { public static void main(String[] args) { String s1 = "nowcoder"; String s2 = "coder"; String s3 = ("now" + s2).intern(); System.out.println(s1.equals(s3)); System.out.println(s1 == s3); } }
truetrue
falsefalse
truefalse
falsetrue