how to make hashmap object as synchronized object?
Answers were Sorted based on User's Feedback
Answer / parishudh
Collections.synchronizedMap(<your hashmap reference>)
Is This Answer Correct ? | 12 Yes | 1 No |
What is the use of runnable interface?
What are locale settings?
Can we write class inside a class in java?
What is an Iterator interface?
What is tcp and udp?
When try and catch block is used ?
Explain different types of wrapper classes in java?
Is main a function?
Can you inherit a constructor java?
there are some duplicate values in ArrayList, how U'll get that array with out duplicate?
What is the difference between compiler and jvm?
What is a default method?