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 class allows you to read objects directly from a stream?
What is broken and continue statement?
Are there structures in java?
How do generics work in java?
What does string intern() method do?
How do you check whether the list is empty or not in java?
What is mnemonic code?
What is the difference between equals() and?
What is the purpose of void?
Is java hashset ordered?
What is the difference between the prefix and postfix forms of the ++ operator?
Is static variable stored in heap?
How would you format a date in java? I.e. In the ddmmyyy format?
What is byte [] in java?
what is the difference between a threads start() and run() methods? : Java thread