单项选择题
下面程序段的输出结果为______。
package test;
public class ClassA
{
int x=20;
static int y=6;
public static void main(String args[])
{
ClassB b=new ClassB();
b. go(10);
System. out. println("x="+b. x);
}
}
class ClassB
{
int x;
void go(int y)
{
ClassA a=new ClassA();
x=a. y;
}
}
A.x=10
B.x=20
C.x=6
D.编译不通过