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 anonymous class in java?
What is a string what operation can be performed out with the help of a string?
What is mnemonic in assembly language?
How use .contains in java?
Differences between C and Java?
Why do we need wrapper classes?
What are the procedures?
What is a variable analysis?
What do you mean by thread safe?
What will be the initial value of an object reference which is defined as an instance variable?
what are Hostile Applets?
How many types of memory areas are allocated by jvm?
What is the purpose of an interface?
Is java type safe?
What is exception hierarchy in java?