2016年7月21日

java jdk1.7后 sting intern()方法与之前的区别

摘要: public static void main(String[] args) { String s1 = new StringBuilder("计算机").append("软件").toString();//在堆中 System.out.println(s1.intern()==s1);// int 阅读全文

posted @ 2016-07-21 11:05 todayjust 阅读(587) 评论(0) 推荐(0) 编辑

导航