What is Difference b/w Fail-fast iterator and fail safe iterator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is Difference b/w Fail-fast iterator and fail safe iterator?

1st Apr 2021, 3:36 AM
Ashwin Raj
Ashwin Raj - avatar
1 Answer
0
Ashwin Raj The Major difference between Fail Fast and Fail Safe iterator is that the Fail Safe does not throw any ConcurrentModificationException in modifying the object during the iteration process, contrary to fail fast, which throws an exception in such scenarios
1st Apr 2021, 9:39 PM
❤️😍Prerana😍❤️
❤️😍Prerana😍❤️ - avatar