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 |
Can you access the private method from outside the class?
what is the replacement method of stop() of thread
Can a constructor call the constructor of parent class?
What is the collection interface?
What is internal iteration in java se 8?
What is operator overloading. Is it is supported in java?
What does n mean in java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
What is Mutex (Mutual Exclusion Object) ?
What is pass by value?
What is a java list?
What is the default value of byte datatype in java?