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
Describe different states of a thread.
How can you add and remove nodes in jtree?
What is a vector in java?
What is contract between hashcode and equal method?
Are static members inherited to sub classes?
What about main() method in java ?
What is generics in java interview questions?
What is the collection interface?
What is a boolean field?
What is not thread safe?
How will you call an Applet using Java Script Function?
What is the use of volatile in java?
Why does abstract class have constructor?
How to make a non daemon thread as daemon?
Explain covariant method overriding in java.