String str1 = "AA"; String str2 = "AA"; String str3 = new String("AA"); Person p1 = new Person("AA",12); Person p2 = new Person("AA",12);
“AA”,name是一个引用变量
String类的内存分析
原文:http://www.cnblogs.com/yjtm53/p/4132220.html