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
What’s the difference between constructors and other methods?
List some java keywords sun like c, c + + keywords?
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
What is jdbc api?
What is the use of hashmap in java?
Which class is used by server applications to obtain a port and listen for client requests?
What do you understand by java?
What is t in generics in java?
Is 0 true or false in java?
When can you say a graph to be a tree?
List any five features of java?
What is the transient keyword?
How do constructors use this() and super()?
Why are constructors used?
What is the use of callablestatement?