下面的代码1和2处各输出什么?具体说明一下理由?public class test {\x05\x05public static void method(final StringBuffer param){\x05\x05param.append("change");\x05\x05System.out.println(param.toString()); //1\x05\x05\x05\x05StringBuffer param =new StringBuffer();\x05\x05param.append("asd");\x05\x05System.out.println(param.toString()); //2\x05}}
问题描述:
下面的代码1和2处各输出什么?具体说明一下理由?
public class test {
\x05
\x05public static void method(final StringBuffer param){
\x05\x05param.append("change");
\x05\x05System.out.println(param.toString()); //1
\x05\x05
\x05\x05StringBuffer param =new StringBuffer();
\x05\x05param.append("asd");
\x05\x05System.out.println(param.toString()); //2
\x05}
}
答
涅盘