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 |
what modifiers are used with top-level class?
What are the different types of garbage collectors in java?
What are the topics in core java?
Can we override final method?
What does it mean to flush a file?
What is string args [] in java?
What is difference between call by value and call by reference?
What are the characteristics provided in jdk1.6 apart from other versions?
What is the difference between synchronized and synchronized block?
What is externalizable interface?
What is java objectoutputstream?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?