Difference between Fail Safe and FailFast Iterator

Tutorials Shared by the Internet Community

Advertisements


Synopsis

fail-safe iterators are relatively new concept in Java. as compared to fail-fast iterator which fail as soon as they detect any structural change in c

Statistics

  • Total Hits - 26981

  • Total Votes - 110 votes

  • Vote Up - 46 votes

  • Vote Down - 64 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2012-02-12 04:35:39

Description

fail-safe iterators are relatively new concept in Java. as compared to fail-fast iterator which fail as soon as they detect any structural change in collection once iteration is begin, fail-safe iterator doesn't fail at all because instead of working on original collection they work on clone
of collection. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements