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
Can we override final method?
What is the maximum size of hashmap in java?
What is the difference between hashset and treeset in java?
What are the drawbacks of reflection?
How do you compare two objects?
What will be the output of round(3.7) and ceil(3.7)?
Tell me the Importent classes in net package?
What is the purpose of main function in java?
Why does java have two ways to create child threads? Which way is better?
What is the major advantage of external iteration over internal iteration?
Why is a constant variable important?
What is equals method in java?
Is string a class in java?
State the main difference between c++ and java?
What are the differences between string and stringbuffer?