ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

Why are Iterators returned by ArrayList called Fail Fast ?

Because, if list is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove or add methods, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.
Related Posts Plugin for WordPress, Blogger...
Flag Counter