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 a flag and how does it work?

0 Answers  


What are the fileinputstream and fileoutputstream?

0 Answers  


What is java reflection api?

0 Answers  


Write a program to find the greatest of three numbers in java?

0 Answers  


Is Java is 100% pure OOPS? Explain?

27 Answers   ANZ,






What is the format of Inner Class after it compiled?

1 Answers  


Can we rethrow the same exception from catch handler?

0 Answers  


Why we should declare the variables as static and final in interfaces?

1 Answers  


List down the methods and interfaces of collection class in java.

0 Answers  


What is an error in java?

0 Answers  


Why does java doesnot support multiple inheritance?

5 Answers   TCS,


how can u handle run time exception in java? explain with brief explanation with examples?

2 Answers   CTS,


Categories