What is a fail-fast iterator versus a fail-safe iterator?
Simple meaning
A fail-fast iterator, like ArrayList's, throws ConcurrentModificationException if the collection is structurally changed during iteration, except through the iterator itself.
Open the full page for Why, Steps, Example and Key takeaway.