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 happens when a thrown exception is not handled?

1049


What is this keyword in java?

978


What is multithreading in java?

999


What is meant by method?

1009


How do you find the absolute value?

998


What do you understand by synchronization?

984


explain multi-threading in java?

958


What is the final class?

970


Difference between vector and arraylist.

1031


List down the methods and interfaces of collection class in java.

932


Why is java architectural neutral?

1039


How to convert string to byte array and vice versa?

1018


What are user defined exceptions?

960


What is rmi and steps involved in developing an rmi object?

987


Can we sort a map in java?

972