String a = "abc";

String b = "abc";

String ab = "ab";

String c = ab + "c";

String d = "ab" + "c"

 

System.out.println( a == b );

System.out.println( a == c );

System.out.println( a == d );

 

发现一段很有意思的JAVA代码,请问运行的结果是什么??为什么是这样?