In Oracle Certified Associate
Java SE 8 Programmer I Study Guide on page 131. The authors never mentioned what happens if the void add(int index, E element) method of ArrayList is passed an invalid index (e.g. index < 0 or index >= size()) in which case the method throws and IndexOutOfBoundsException.