public class Foo { <br /> static int[] a; <br /> static { a[0]=2; } <br /> public static void main( String[] args) {} <br /> } <br /> 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.ArraylndexOutOfBoundsException