Java · Medium
Difference between ConcurrentModificationException and IllegalStateException.
JavaTrickyCollectionsConcurrency
Answer preview
ConcurrentModificationException — Thrown by fail-fast iterators when the underlying collection is structurally modified during iteration (other than through the iterator's own remove()). Detects via internal modCount mismatch.…