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’s the difference between constructors and other methods?

935


List some java keywords sun like c, c + + keywords?

964


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2061


What is jdbc api?

962


What is the use of hashmap in java?

1027


Which class is used by server applications to obtain a port and listen for client requests?

909


What do you understand by java?

924


What is t in generics in java?

1005


Is 0 true or false in java?

952


When can you say a graph to be a tree?

1029


List any five features of java?

963


What is the transient keyword?

2022


How do constructors use this() and super()?

1051


Why are constructors used?

965


What is the use of callablestatement?

964