一个小程序请说一下结果并解释一下!!
class A{
public String a;
private A b;
public A getb(){ b=new A();return b;}
}
public class AA{
public static void main(String args[]){
A e = new A();
A r = new A();
//e.getb=new A();
A c = e.getb();
c.a="sfg";
System.out.println(e.getb().a);
}
}