How can you say HashMap is syncronized?
Answer Posted / aruna kadaari
By using the below statment we can stnchronize the hashmap
Hashmap hm = new Hashmap();
Map m = Collections.synchronizedMap(hm);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a pointer and does java support pointers?
Break statement can be used as labels in java?
What does the “final” keyword mean in front of a variable? A method? A class?
Why hashset is used in java?
Is empty string in java?
What are singleton services?
What do you mean by buffering?
Is string an object?
Can you give names of Container classes?
Difference between comparator and comparable in java?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
What are some characteristics of interference class?
What are the methods of object class ?
What is the difference between a local variable and an instance variable?
What is difference between wait and notify in java?