java中地址字符串的地址问题
String s1="this is the secend string.";String s2="this is the secend string.";
boolean result=s1==s2;
System.out.println(result);
求教大神这个 = = 为什么输出结果是true?不是在内存里面重新开辟内存了吗?又不是常量进行寻找看是否有相同的。。。




2016-07-19 22:27
2016-07-20 10:14
2016-07-20 22:53
2016-07-20 22:55
2016-07-28 14:35