给定Java代码如下所示,则编译运行后,输出结果是(C)。
public class Test (
int i;
public int aMethod() (
i++;
return i;
public static void main(Stringll args) (
Test test = new Test();
test.aMethod();
System.out.printIn(test.aMethod());
GCoe C
D.3
minatade hnreteaf he dponi Cyhg a
A.0 B.1 C.2