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 sorting algorithm does javascript use?
Which list is sorted in java?
What is the difference between hashmap and hashtable in java?
how do I create a runnable with inheritance? : Java thread
Explain enumeration in java?
What are extraneous variables examples?
What is bitwise complement?
What is Java Package and which package is imported by default?
Can we have two main methods in a java class?
What does int argc char * argv [] mean?
What is java console application?
Why java is considered dynamic?
Is class forname reflection?
Does every java program need a main?
Tell us something about an iterator.