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 is locale in java?
What is meant by anonymous class?
Explain the term serialization?
What is main string [] args?
What are the types of web technologies?
Which data type is a class in java?
What is the core java?
What is type safety in java?
define System.out.println(); what is the meaning!
What is encapsulation? Elaborate with example?
What is difference between jdk,jre and jvm?
What steps are taken when the OS shifts from one-thread execution to another?