What will happen when you compile and run the following code:
public class X
{
public static void main(String[] args)
{
int a[] = {0,1,2};
System.out.println(a[1]);
}
}
A) Error: "Array declaration 'int a[]' illegal."
B) Error: "Array size must be specified."
C) Error: "Array initialization not allowed."
D) Output 0
E) Output 1