字符串直接赋值和构造赋值的区别 String s1 = new String("abc"); String s2 = "abc"; //有区别吗? 有区别,s1在建立过程中,有两个对象,s1一个,"abc"一个。s2就"abc"一个