因为它们都只向同一个常量"asdf";你按照如下方式试一下:String a= new String("asdf");
String b= new String("asdf");