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

Can you pass by reference in java?

0 Answers  


What is method overriding in java ?

0 Answers  


write a program to create an vector with string(add,remove) operation.and value should be enter through keyboard.

0 Answers   Axcend,


What is character in data type?

0 Answers  


What are bind parameters?

0 Answers  






What is the main function in java?

0 Answers  


Is break statement can be used as labels in java?

0 Answers  


Write a program to print count of empty strings in java 8?

0 Answers  


Differences between external iteration and internal iteration?

0 Answers  


How do you override a method?

0 Answers  


What comes to mind when someone mentions a shallow copy in java?

0 Answers  


Is java owned by oracle?

0 Answers  


Categories