Google News
logo
Java Collections - Interview Questions
How to avoid ConcurrentModificationException when removing while Iterating through a Collection?
Iterator.remove is the only safe way to modify a collection during iteration; the behavior is unspecified if the underlying collection is modified in any other way while the iteration is in progress.
Advertisement