public class Test {  public int aMethod() {  static int i = 0;  i++;  return i;  }  public static void main (String args[]) {  Test test = new Test();  test.aMethod();  int j = test.aMethod();  System.out.println(j);  }  }  What is the result?()  

A .  0 B .  1 C .  2 D .  Compilation fails.

时间:2022-09-15 22:08:04 所属题库:SCJP程序员认证考试题库

相似题目