求解以下程序的运行后是什么情况
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();
}
}
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();
}
}
2016-08-12
举报