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.printIn(j);  ]  }        What is the result?()  

A .  Compilation will fail. B .  Compilation will succeed and the program will print “0” C .  Compilation will succeed and the program will print “1” D .  Compilation will succeed and the program will print “2&rdquo

时间:2022-09-03 13:58:02 所属题库:SCJP程序员认证考试题库

相似题目