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.
Thanks for your reply. You're right, maybe I shouldn't have posted it as an errata but since I'm using your guide to prepare for the exam, I think such piece of info should have been included in it.