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
What is the range of a character variable?
What is a concrete classes? Is Java object class is concrete class?
When should I use a singleton?
What is the difference between Java1.4 and Java1.5
What is the generic function?
What is the difference between access specifiers and access modifiers in java? 16
What is pre increment and post increment in java?
What are scalar data types?
When throw keyword is used?
Does java vector allow null?
What is the private method modifier?
Which container method is used to cause a container to be laid out and redisplayed in java programming?
Why declare Main() method as a static in java ?
Does every java program need a main?
Can we serialize arraylist in java?