How to synchonise HashMap
Answers were Sorted based on User's Feedback
Answer / srinivasa
we can use to Collections.syncroniseMap() to synchronize
the HashMap
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / srinu
This is method for synchronise HashMap
Map m1=Collections.synchronizedMap(Map m)
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / yogesh sanas
Map map = Collections.synchronizedMap(new HashMap());
| Is This Answer Correct ? | 0 Yes | 0 No |
Iterator in the HashMap is fail-safe means what?
What is loop in java?
What does arrays sort do in java?
What are static methods?
What is appletviewer?
what are ER diagrams?
How to make a method thread safe without using synchronized keyword?
8 Answers Persistent, Societe Generale,
What is the difference between a checked and an unchecked exception?
How many types of equations are there?
What is the purpose of the file class in java programming?
How do you input a string in java?
How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused object Parmanently or it maintains something.