单选题 Java
题号 #153391

下列代码的执行结果是 
public class Test 
{  
public int aMethod() 
{ 
static int i=0; 
i++; 
System.out.println(i); 
} 
public static void main(String args[]) 
{ 
Test test = new Test(); 
test.aMethod(); 
} 
}

进入在线模考

参考答案

B

答案解析

暂无解析

你可能感兴趣的试题

A.内部类的类名只能在定义它的类或程序段中或在表达式内部匿名使用 
B.内部类可以使用它所在类的静态成员变量和实例成员变量 
C.内部类不可以用abstract修饰符定义为抽象类 
D.内部类可作为其他类的成员,而且可访问它所在类的成员
找试题 · 找答案 · 找资料 在线模考