摘要: 下面的测试是在hotspot,jdk8环境下进行测试的 String s1 = "abc";String s2 = "ab" + "c";System.out.println(s1 == s2);//true。优化的结果String str0 = new StringBuilder("计算机").t 阅读全文
posted @ 2021-10-15 17:19 Lucy151213 阅读(20) 评论(0) 推荐(0) 编辑