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
Why does my function print none?
Is java 1.7 the same as java 7?
Can we increase array size dynamically in java?
What is the java project architecture?
What is the difference between the prefix and postfix forms of the ++ operator?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is the difference between menuitem and checkboxmenu item?
What are the different tags provided in jstl?
List the interfaces which extends collection interface?
What are the classes of java?
Can It is possible to synchronize the constructor of a Java Class?
What are features of java?
How do you check if a string is lexicographically in java?
Can a java program have 2 main methods?
What is the destroy method?