View Raghavendra Prasad 's Profile
What is the diffrence between FailFast and FailSafe?
What is failfast?
What is fail safe?
What is the difference betweenn them?
what are the scenarios that we can use them?
Asked by Raghavendra Prasad | Sep 28 2014 | Report this Report abuse
Replies (2)
View Shatish  Rao 's Profile
When one or more thread is iterating over the collection, in between, one thread changes the structure of the collection is known as Concurrent Modification . The ConcurrentModificationException is thrown if the Collection is modified while Iterating over the data structure. Concept of fail-fast and fail-safe iterator are relatively new in Java and first introduced with Concurrent Collections in Java 5 like ConcurrentHashMap and CopyOnWriteArrayList. Java Collections supports two types of Iterator, Fail-Fast iterators and Fail-Safe Iterators. More.....

http://net-informations.com/java/cjava/failfast.htm
Apr 20 2017 | Report this Report abuse
View Chinmay  Hegde 's Profile
When one or more thread is iterating over the collection, in between, one thread changes the structure of the collection is known as Concurrent Modification . The ConcurrentModificationException is thrown if the Collection is modified while Iterating over the data structure. Concept of fail-fast and fail-safe iterator are relatively new in Java and first introduced with Concurrent Collections in Java 5 like ConcurrentHashMap and CopyOnWriteArrayList. Java Collections supports two types of Iterator, Fail-Fast iterators and Fail-Safe Iterators. More.....

http://net-informations.com/java/cjava/failfast.htm
Sep 30 2015 | Report this Report abuse