What are fail-safe and fail-fast iterators in Java They are exceptions raised during program execution when one thread adds data to a Java Collection and another thread iterates over the elements. Let’s discuss more in detail...
Tuesday, February 12, 2013
Gaining clearer picture on fail-safe and fail-fast iterator
Reading code allowing me to gain more clearer picture on how fail-safe and fail fast iterator work. Some note to put is that fail safe is far more costly as it making another clone of Collection.