String s = new String(“zsx”); 相当于 String s1=”zsx”; String s=new String(s1);
2015/8/3 17:09添加:
请把下面的程序编译后再反编译: String a = “a”; String b = “b”; String c = a + b; String d = c + 1; 得到的结果是: String a = “a”; String b = “b”; String c = (new StringBuilder(String.valueOf(a))).append(b).toString(); String d = (new StringBuilder(String.valueOf(c))).append(1).toString();