fail-fast iterator

Posted by joy on Stack Overflow See other posts from Stack Overflow or by joy
Published on 2012-11-25T09:53:04Z Indexed on 2012/11/25 11:04 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

I get this definition : As name suggest fail-fast Iterators fail as soon as they realized that structure of Collection has been changed since iteration has begun.

what it mean by since iteration has begun? is that mean after Iterator it=set.iterator() this line of code?

public static void customize(BufferedReader br) throws IOException{  
    Set<String> set=new HashSet<String>(); // Actual type parameter added  
    **Iterator it=set.iterator();**

© Stack Overflow or respective owner

Related posts about java

Related posts about collections