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
Write a program to print fibonacci series up to count 10.
What is field name?
How do constructors use this() and super()?
Why there are some null interface in java? What does it mean?
What is ‘has a’’ relationship in java?
What is main function purpose?
What is final?
How to sort elements in a parallel array in java?
Why vector is used in java?
Discuss different types of errors that generally occur while programming.
Can we nested try statements in java?
Which class cannot be a subclass in java?
Where is jre installed?
What are the procedures?
What is reverse function?