what is the difference between HashMap and Hashtable
Answer Posted / ashad
Hash Table is a legacy Class Whereas HashMap belongs to the
collections package.
HashMap allows null key and values..but it allows only one
null key and multiple null values...Whereas the HashTable
wont allow the null key and values..
HashMap allows only one null key, basic idea behind it is
that key can have unique value only if one null is assigned
to a key next null will be duplicate.
Is This Answer Correct ? | 10 Yes | 9 No |
Post New Answer View All Answers
What is the use of inner class?
What is the difference between comparison done by equals method and == operator?
Is string serializable in java?
What is xslt in java?
Is string is a class in java?
What is the difference between length and length () in java?
Is cout buffered?
Explain what are final variable in java?
Why synchronization is important in java?
When parseint method can be used?
How to handle a web browser resize operation?
What is the use of string and stringbuffer?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is the difference between a field variable and a local variable?
why using interface interface ?