What will happen if you try to access an element with an index greater than the size of the ArrayList?
It throws an ArrayIndexOutOfBoundsException
It throws a NoSuchElementException
It returns null
It throws an IndexOutOfBoundsException
This question is part of this quiz :
Java ArrayList