s = new String(); 这里相当于构建了一个空的字符串s = "",其!=null,属于构建了对象,但里面什么都没有。s = null; 和s = new String()完全是两个概念,s = null这里根本没有对象。