How can you say HashMap is syncronized?
Answer Posted / kishore
HashMap is not synchronized.
If u want to synchronized we have to do
HashMap map=java.util.Collections.synchronizedMap(new
HashMap());
Hash Map permits Key and values are Null.
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
Is null function in java?
What is the use of isempty in java?
What is the difference between equals() and?
Is nan false?
What is a constructor, constructor overloading in java?
What are the topics in core java?
How can we make string upper case or lower case?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
What is files manifesting?
Can we access instance variables within static methods ?
List the different types of classloaders in java.
Which is bigger double or float?
Are static members inherited to sub classes?
In a container there are 5 components. I want to display all the component names, how will you do that?
Why is a constant variable important?