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 / namy

Fail-safe is relevant from the context of iterators. If an iterator has been created on a collection object and some other thread tries to modify the collection object "structurally”, a concurrent modification exception will be thrown. It is possible for other threads though to invoke "set" method since it doesn’t modify the collection "structurally”. However, if prior to calling "set", the collection has been modified structurally, "IllegalArgumentException" will be thrown.

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are extraneous variables examples?

1095


What language is pass by reference?

1010


What is the purpose of garbage collection in java, and when is it used?

1035


How many types of design patterns are there?

1097


What is boolean query?

975


How to perform bubble sort in java?

994


What does flag mean in java?

1021


Can a class have 2 constructors?

888


Does java map allow duplicates?

893


Is string pool garbage collected?

1012


Can a function return a function?

1033


What is the difference between access specifiers and access modifiers in java?

1166


What modifiers may be used with a top-level class?

1057


What is the abstract class?

1026


Can you inherit a constructor java?

1078