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 an accessor?

1 Answers   BirlaSoft,


Do you know thread pools?

0 Answers   BMC,


How to prevent a field from serialization ?

2 Answers  


Can list be final in java?

0 Answers  


What is abstraction in java?

0 Answers   Akamai Technologies,






what is the context

2 Answers  


What's the difference between comparison done by equals method and == operator?

0 Answers  


what is the use of clone() in real time scenario?

2 Answers   Quinnox,


What is canonical name in java?

0 Answers  


What is data type in computer?

0 Answers  


What do you mean by light weight and heavy weight components?

0 Answers  


What are byte codes?

0 Answers  


Categories