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
Can a class be defined inside an interface?
Is map ordered in java?
Write a java program to generate fibonacci series ?
Explain differences between checked and unchecked exceptions in java?
What is treeset and treemap in java?
What is the purpose of using the java bean?
What is a parameter used for?
Explain how to force the garbage collection in java.
how to run ecllipse with jettyserver for windows environment using batch file
State some advantages of java?
In which language java is written?
Are floats faster than doubles?
What are the types of collections in java?
Can a abstract class be defined without any abstract methods?
How to instantiate member inner class?