how to make hashmap object as synchronized object?

Answers were Sorted based on User's Feedback



how to make hashmap object as synchronized object?..

Answer / parishudh

Collections.synchronizedMap(<your hashmap reference>)

Is This Answer Correct ?    12 Yes 1 No

how to make hashmap object as synchronized object?..

Answer / aroyal

Thanks

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Core Java Interview Questions

What is the use of runnable interface?

0 Answers  


What are locale settings?

0 Answers  


Can we write class inside a class in java?

0 Answers  


What is an Iterator interface?

2 Answers  


What is tcp and udp?

0 Answers  






When try and catch block is used ?

6 Answers  


Explain different types of wrapper classes in java?

0 Answers  


Is main a function?

0 Answers  


Can you inherit a constructor java?

0 Answers  


there are some duplicate values in ArrayList, how U'll get that array with out duplicate?

4 Answers   CMC,


What is the difference between compiler and jvm?

0 Answers  


What is a default method?

0 Answers  


Categories