@Test
public void
test02() {
final
StringBuffer strbuf01 = new StringBuffer("0000");
final StringBuffer strbuf02 =
new StringBuffer("1111");
strbuf01 =
strbuf02; //无法通过编译
strbuf01.append("2222"); //可以通过编译
}
原文地址:http://www.cnblogs.com/daojoo/p/3699633.html