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 the 8 primitive data types in java?
How many types of memory areas are allocated by JVM in java?
Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
how can i connect to database in a applet ?
What is fundamental datatype?
Same common question what is Map,Set,HashMap,List????
What is a parameter in java?
What is nullpointerexception?
where can we get jAVA project orientation traing in HYDERABD
What is an escape character in java?
What does three dots mean in java?