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 |
Are there structures in java?
What is autoboxing in java?
What is the entry point in Java, and how is it written?
What is a protected class in java?
What are meta-annotations?
What do you mean by access modifier?
What is the difference in between cpp and java? Can u explain in detail?
can any one send me the example program of immutable class?
How many digits can a float hold?
Explain the advantages of packages in java?
Is java supports multiple inheritance? explain?
what is meant by Byte code concept in Java?