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
When should I use singleton pattern?
What function extracts specified characters from a string?
What are the main differences between notify and notifyAll in Java?
What is argument in java?
What is immutable in java?
Explain what is encapsulation?
What does @override mean?
Is void a data type?
Is main a keyword in java?
What is difference between add() and addelement() in vector?
What is Java Package and which package is imported by default?
Write a program to reverse a number in java?
What does string intern() method do?
Explain what are final variable in java?
Why is it called a string?