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 epoch date?
What is array pointers ?
What are the common uses of "this" keyword in java ?
What is difference between fail-fast and fail-safe?
How we can run a jar file through command prompt in java?
Which sort is best in java?
Why do we need singleton class?
What is the difference between a factory and abstract factory pattern?
Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.
Is set sorted in java?
java program with complete 4 oops concepts implemented example
I want to store more than 10 objects in a remote server? Which methodology will follow?
What ide should I use for java?
Which is bigger double or float?
Is java pass by value or pass by reference?