Pergunta de entrevista da empresa Capgemini

Fail Fast vs Fail Safe

Resposta da entrevista

Sigiloso

26 de jun. de 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)