public class Foo{
public static void main(String sgf[ ]){
StringBuffer a = new StringBuffer("A");
StringBuffer b = new StringBuffer("B");
operate(a,b);
System.out.println(a+"."+b);
}
static void operate(StringBuffer x,StringBuffer y){
x.append(y);
y=x;
}
}
A、The code compiles and prints "A.A"
B、The code compiles and prints "AB.B"
C、The code compiles and prints "AB.AB"
D、The code compiles and prints "A.B"
E、The code compiles and prints "B.B"
B