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
Does A Class Inherit The Constructors Of Its Superclass?
can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread
What is anagram number?
Can list contain null in java?
What is type safety in java?
Is finalize() similar to a destructor?
Write a code to show a static variable?
Why do we use bufferedreader?
Is 0 true or false in java?
What is parsing a string?
Can you achieve runtime polymorphism by data members?
What is an interface in java? Explain
Why synchronization is important in java?
Does java support multiple inheritance or not?
What is the instance of an object?