String str="abc...";这样定义的字符串是存在字符串池中的. String str=new String(" abc...")这样定义的字符串是在堆内存中的,然后被栈内存的对象str引用 ...
zhidao.baidu.com