Quiz · Arrays · lesson 2 of 8Quiz — an index out of boundsWhat happens when this program is compiled and run?JAVApublic class Main { public static void main(String[] args) { int[] a = {1, 2, 3}; System.out.println(a[3]); } }[A]It does not compile: the array has no index 3[B]3[C]An ArrayIndexOutOfBoundsException is thrown[D]0← BackArraysNext →Looping over an array and Arrays