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 are the new features in java 8?

0 Answers  


What is floating data type?

0 Answers  


what is the full form of java

3 Answers  


How many bytes is a url?

0 Answers  


Do extraneous variables affect validity?

0 Answers  






What environment variables are required to be set on a machine in order to run Java programs?

0 Answers   Tech Mahindra,


What is difference between java and java ee?

0 Answers  


Give a brief description of java socket programming?

0 Answers  


What about abstract classes in java?

0 Answers  


Why method overloading and method overriding required in java?

1 Answers   Ericsson, Wipro,


What happens if we override only equals?

0 Answers  


what is check p object in java

1 Answers   TCS,


Categories