Frage im Vorstellungsgespräch bei Capgemini

Fail Fast vs Fail Safe

Antwort im Vorstellungsgespräch

Anonym

26. Juni 2020

While iterating any collection or map, if iterator throw concurrentModificationException because some process was trying the modifying the collection or map that iterators we called as fail-fast. On the other hand, if they do not throw the exception, those iterator called as fail-safe (Iterator of thread safe classes)