How to synchonise HashMap

Answers were Sorted based on User's Feedback



How to synchonise HashMap..

Answer / srinivasa

we can use to Collections.syncroniseMap() to synchronize
the HashMap

Is This Answer Correct ?    13 Yes 2 No

How to synchonise HashMap..

Answer / srinu

This is method for synchronise HashMap
Map m1=Collections.synchronizedMap(Map m)

Is This Answer Correct ?    10 Yes 0 No

How to synchonise HashMap..

Answer / yogesh sanas

Map map = Collections.synchronizedMap(new HashMap());

Is This Answer Correct ?    0 Yes 0 No

How to synchonise HashMap..

Answer / sreenu karampudi

Collections.synchroniseHashMap()

Is This Answer Correct ?    3 Yes 6 No

Post New Answer

More Core Java Interview Questions

What are the 8 primitive data types in java?

0 Answers  


How many types of memory areas are allocated by JVM in java?

0 Answers   UGC Corporation,


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?

2 Answers  


How we can skip finally block of exception even if some exception occurs in the exception block in java?

0 Answers  


how can i connect to database in a applet ?

1 Answers  


What is fundamental datatype?

0 Answers  


Same common question what is Map,Set,HashMap,List????

4 Answers   Symphony,


What is a parameter in java?

0 Answers  


What is nullpointerexception?

0 Answers  


where can we get jAVA project orientation traing in HYDERABD

0 Answers  


What is an escape character in java?

0 Answers  


What does three dots mean in java?

0 Answers  


Categories