how can we synchronize Hash map?

Answers were Sorted based on User's Feedback



how can we synchronize Hash map?..

Answer / vikram kc

Collections.synchronizedMap(hashMap)

Is This Answer Correct ?    18 Yes 2 No

how can we synchronize Hash map?..

Answer / ravikiran

Collections.synchronizedMap(new HashMap());

Is This Answer Correct ?    10 Yes 1 No

how can we synchronize Hash map?..

Answer / prabhu

hasgmap hs=new hashmap();
vector v =new vector (hs);

Is This Answer Correct ?    2 Yes 10 No

Post New Answer

More Core Java Interview Questions

What is a dynamic array in java?

0 Answers  


What is widening and narrowing in java? Discuss with an example.

0 Answers   Amdocs,


What is the static field modifier?

0 Answers  


What are the restriction imposed on a static method or a static block of code?

0 Answers  


Can we execute java program without main method?

0 Answers  






if i have one string class then how can you achive this class functionality of this class?

3 Answers   Fidelity, iFlex,


what is method reference in java 8?

0 Answers  


How can we run a java program without making any object?

0 Answers  


What is style and indentation?

0 Answers  


What is difference between overloading and overriding?

2 Answers   Accenture,


What is codebase?

0 Answers  


What are the types of strings?

0 Answers  


Categories