int a;
int b;
StringBuffer c;
StringBuffer d;
a = 0;
b = a;
c = new StringBuffer("This is c");
d = c;
c = new StringBuffer("new c");
a = 2;
c.append("!"); System.out.println("a=" + a);
System.out.println("b=" + b);
System.out.println("c=" + c);
System.out.println("d=" + d); 基础题啊!结果在下面,看和自己一样不!
a=2
b=0
c=new c!
d=This is c
int b;
StringBuffer c;
StringBuffer d;
a = 0;
b = a;
c = new StringBuffer("This is c");
d = c;
c = new StringBuffer("new c");
a = 2;
c.append("!"); System.out.println("a=" + a);
System.out.println("b=" + b);
System.out.println("c=" + c);
System.out.println("d=" + d); 基础题啊!结果在下面,看和自己一样不!
a=2
b=0
c=new c!
d=This is c
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货