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 are memory tables?
What do you mean by Hash Map and Hash Table?
What is the difference between multiple processes and multiple threads?
What are java methods?
Is space a string in java?
Can You Have Virtual Functions In Java?
What is difference between word and integer?
How does remove work in java?
How does a try statement determine which catch clause should be used to handle an exception?
Does importing a package imports its sub-packages as well in java?
why using interface interface ?
What does localhost mean?