About Question enthuware.ocajp.i.v7.2.1106 :
Posted: Wed Dec 31, 2014 11:56 pm
Note, when we try to access a zero-element of array of length zero:
than in runtime it throws an exception java.lang.ArrayIndexOutOfBoundsException.
Code: Select all
int[] arrZero = new int[0];
System.out.println("arrZero[0] = " + arrZero[0]);