Skip to content

Glossary: Algorithms Beyond the Basics in Java

ConcurrentModificationException

An error Java throws when a map or list is changed while it is being updated. Calling `computeIfAbsent` with a lambda that recurses and changes the same map causes it.

Where the book teaches it

Related terms

computeIfAbsentmemoization