Which exception occurs when an Iterator is used after modifying the collection directly?

Last Updated :
Discuss
Comments

Which exception occurs when an Iterator is used after modifying the collection directly?


NullPointerException

ConcurrentModificationException

IndexOutOfBoundsException

IllegalArgumentException

Share your thoughts in the comments