public class Foo {  static int[] a;  static { a[0]=2; }  public static void main( String[] args) {}  }  Which exception or error will be thrown when a programmer attempts to run this code?() 

A .  java.lang. StackOverflowError B .  java.lang.IllegalStateException C .  java.lang.ExceptionlnlnitializerError D .  java.lang.ArraylndexOutOfBoundsExceptio

时间:2022-10-29 16:45:05 所属题库:SCJP程序员认证考试题库

相似题目

推荐题目