在Java中,如下代码段的输出结果为()。
public class Test {
int i = 10;
public void methodOne(int i){
System.out.println(i);
}
public void methodTwo(){
int i = 12;
System.out.println(i);
i++;
}
public void methodThree(){
System.out.println(i);
}
public static void main(String args[]){
Test test = new Test();
test.methodOne(11);
test.methodTwo();
test.methodThree();
}
}
A.10
11
12
B.11
12
10
C.不能正常运行,编译时出错
D.以上都不正确