Which method of Iterator throws ConcurrentModificationException?
Which method of Iterator throws ConcurrentModificationException? The iterators returned by ArrayList iterator() and listIterator() methods are fail-fast: if the list is structurally modified at any time after the iterator is created, in any way except through the iterator’s own remove or add methods, the iterator will throw a ConcurrentModificationException . Read more…