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 memory tables?

0 Answers   Aspiring Minds,


What do you mean by Hash Map and Hash Table?

0 Answers   Atos Origin,


What is the difference between multiple processes and multiple threads?

0 Answers  


What are java methods?

0 Answers  


Is space a string in java?

0 Answers  






Can You Have Virtual Functions In Java?

0 Answers  


What is difference between word and integer?

0 Answers  


How does remove work in java?

0 Answers  


How does a try statement determine which catch clause should be used to handle an exception?

2 Answers  


Does importing a package imports its sub-packages as well in java?

0 Answers  


why using interface interface ?

0 Answers  


What does localhost mean?

0 Answers  


Categories