Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Iterator in the HashMap is fail-safe means what?

Answer Posted / amol

The iterators for the concrete collection implementations
are fail-fast.
That means that if you are using an Iterator to traverse a
collection while underlying collection is being modified by
another thread, then the Iterator fails immediately by
throwing a ConcurrentModificationException (another
RuntimeException). That means the next time an Iterator
method is called, and the underlying collection has been
modified, the ConcurrentModificationException exception gets
thrown.

Is This Answer Correct ?    59 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a byte string?

1055


What is "this" keyword in java? Explain

1052


How do you check if an arraylist is not empty?

1057


What is a “stateless” protocol ?

940


What does || mean in code?

993


What is the argument in java?

871


When can we say that threads are not lightweight process in java?

1079


Explain the usage of this with constructors?

976


How do I get a substring?

931


Break statement can be used as labels in java?

946


What is nan in java?

945


How to obtain a performance profile of java program

954


What is difference between path and classpath?

1070


What does this mean java?

1032


Write a program to print fibonacci series

1076