what is the difference between HashMap and Hashtable
Answer Posted / green
HashTable is a Legacy Class,where as HashMap is not.
HashTable is Syncronized,where as HashMap is not.
HashTable does not allow any null keys nad values, HashMap
allows one null key and 'n' number null values.
comparatively HashMap is faster then HashTable
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Explain spliterator in java8?
What do you mean by garbage collection used in java?
Break statement can be used as labels in java?
What are the benefits of java?
Explain java coding standards for constants?
What is return null in java?
Differentiate storage classes on the basis of their scope?
Explain the difference between extends thread vs implements runnable in java?
What is serialization in java?
What is deserialization?
Is java same as core java?
Difference between method overloading and overriding.
What methods are used in Servlet?Applet communication?
What is a protected class in java?
What is the benefit of abstract class?