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 |
How do I stop concurrentmodificationexception?
Explain the overview of UDP messaging.
Is integer immutable in java?
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
what is a thread pool in java and why is it used?
Write code to implement bubble sort in java?
Explain the Propertie sof class?
What is the vector class in java programming?
Which is easier .net or java?
What is array class in java?
Is it possible to declare abstract class as final?What happens if we do so?
What are order of precedence and associativity, and how are they used?