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 best practices should you follow while writing multithreaded code in java?
What is user defined exception in Java?
What is procedure writing?
What is Gang of four design patterns
How a string is stored in memory?
What are the different collection views provided by maps?
Which variables are stored in stack?
How much is a java license?
Can we sort arraylist in java?
Is java owned by oracle?
What is a numeric format?
List out five keywords related to exception handling ?
What is a ternary operator in java?
What is a stack class in java ?
What is meant by 'bit masking' in java?