Total WebSite Views Count

Fail Fast Vs Fail Safe Iterators In Java

Fail Fast Vs Fail Safe Iterators In Java :


Fail-Fast IteratorsFail-Safe Iterators
Fail-Fast iterators doesn’t allow modifications of a collection while iterating over it.Fail-Safe iterators allow modifications of a collection while iterating over it.
These iterators throw ConcurrentModificationException if a collection is modified while iterating over it.These iterators don’t throw any exceptions if a collection is modified while iterating over it.
They use original collection to traverse over the elements of the collection.They use copy of the original collection to traverse over the elements of the collection.
These iterators don’t require extra memory.These iterators require extra memory to clone the collection.
Ex : Iterators returned by ArrayList, Vector, HashMap.Ex : Iterator returned by ConcurrentHashMap.



AWS Services

AWS Services

Technology Selection & Evaluation Criteria

Technology Selection & Evaluation Criteria

Scale Cube - Scale In X Y Z Cube

Scale Cube - Scale In X Y Z Cube

Feature Post

AWS Services

About Me

About Me

Spring Cloud

Spring Cloud
Spring Cloud

Spring Cloud +mCloud Native + Big Data Archittect

Spring Cloud +mCloud Native + Big Data Archittect

ACID Transaction

ACID Transaction

Data Pipe Line Stack

Data Pipe Line Stack

Popular Posts