what is the difference between HashMap and Hashtable
Answer Posted / chandan phukan
Two main differences between Hastable and HashMap are
1. Hashtable is synchronised but HashMap is not.
2. Hashtable does not allow "null" key but HashMap allows
"null" Key.
However one point to remember is that only one "null" key is
allowed in HashMap but multiple "null" values are allowed in
HashMap.
| Is This Answer Correct ? | 75 Yes | 9 No |
Post New Answer View All Answers
How is Object Oriented Programming different from Procedure Oriented Programming?
What access modifiers can be used for class ?
What is nested class?
What is the purpose of the System class?
What is the difference between char and char *?
what is the significance of listiterator in java?
Is this valid in java ? Can we instantiate interface in java?
How do I know if java is installed?
What does a za z0 9 mean?
Using callable statement how can you pass out parameters, explain with example?
Differentiate between overriding and overloading cases?
What is anonymous inner class?
What does @param args mean in java?
What is a instance variable?
Difference difference paint() and paintcomponent()?