String str = “abc”; String str = new String(“abc”); 前面那个str创建对象为什么不需要new,“abc”是怎么给了str?后面的“abc”给了谁?
收起
都只是指向对象的地址。
报告相同问题?