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 the use of pattern in java?
Detail discussions on JVM, memory management and garbage collector.
How many bits is a string in java?
How do you sort an array in java?
Is string thread safe in java?
Write java program to reverse string without using api?
What is boolean query?
What is the difference between break and continue statements?
What is ascii code?
What is the main difference between java platform and other platforms?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
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?????
How do I get 64 bit java?
What is mean by collections in java?
What is the difference between scrollbar and scrollpane?