How to synchonise HashMap
Answers were Sorted based on User's Feedback
Answer / srinivasa
we can use to Collections.syncroniseMap() to synchronize
the HashMap
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / srinu
This is method for synchronise HashMap
Map m1=Collections.synchronizedMap(Map m)
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / yogesh sanas
Map map = Collections.synchronizedMap(new HashMap());
| Is This Answer Correct ? | 0 Yes | 0 No |
What type of value does sizeof return?
explain local datetime api in java8?
What is == and === in javascript?
What is internal variable?
What is meant by polymorphism?
What does it mean to be immutable?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
How will you measure that int takes up only 32 bits in memory?
Is null == null in java?
Which sort is best in java?
Explain pass by reference and pass by value?
What is a modifier?