今天看Java虚拟机中的常量池部分提到了String.intern()方法,我jdk是1.8的,我跑了下代码 String str1 = new StringBuffer("计算机").append("va").toString(); System.out.println(str1.intern() == str1); String str3 = new String("maths"); String str2 = new StringBuilder("mat").append("hs")....