以下是引用Eastsun在2007-2-14 23:13:09的发言:str1是在内存池没错,但str2不是~
你用个反编译工具反编译一下class文件就会发现
str2 =str1+"lo";
实际上是:
str2 = (new StringBuilder()).append(str2).append("lo").toString();
显然,str2是new出来滴(不信去看看StringBuilder的源代码),so...

长见识了
感觉这年头牛人真多
j2se板块里有好几个高手哦
多学习了