(Choose 1 answer)
int[] a= {1,2,3,4};
If the following code is executed. What is the output?
System.out.println(a[6]);
A. ArrayIndexOutOfBoundsException
B. A compile-time exception because they must be put in the try catch block.
C. 0
D. A non-predictable value.
Exit 30