Skip to content

Glossary: Java Beyond the Basics

ConcurrentModificationException

The exception thrown when you remove from a list inside a for-each loop, because the loop notices the list changed. Use an Iterator or removeIf instead.

Where the book teaches it

Related terms

Iteratormerge, computeIfAbsent