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 the format specifier?

988


How do you create a first line indent?

1045


Why do we need wrapper classes?

1118


What does a void function return?

1064


What is an abstract class and what is it’s purpose?

1012


How hashmap works in java?

1088


What is the difference between a break statement and a continue statement?

1084


What is thread life cycle in java?

1136


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

1047


Which java ide is used the most?

1051


Explain naming conventions for packages?

1088


Is static variable stored in heap?

1051


What is public/private protected in java?

1084


What is a private class in java?

1121


What value is a variable of the string type automatically initialized?

1163