There are two types of iterators in Java: fail-safe and fail-fast.
What does this mean, and is the difference between them?
This scenario relate with "concurrent processing", means that more then one user accessing the same resource. In such situation, one of the user try to modify that resource which cause the 'ConcurrentProcessingException' because in that case other user get improper data. Both this type relate with this kind of situation.
In simple term,
Fail-Fast :
Fail-Safe :