what is the difference between HashMap and Hashtable
Answer Posted / arun rajesh
The HashMap class is roughly equivalent to Hashtable,
except that it is unsynchronized and permits nulls.
(HashMap allows null values as key and value whereas
Hashtable doesnt allow).
HashMap does not guarantee that the order of the map will
remain constant over time. HashMap is unsynchronized and
Hashtable is synchronized.
Is This Answer Correct ? | 54 Yes | 12 No |
Post New Answer View All Answers
Can this keyword be used to refer static members?
Can a class extend 2 classes in java?
What is a constructor overloading in java?
Who is the owner of java?
How do you sort arraylist in descending order?
How many types of flags are there?
Where is the find and replace?
What will happen to the exception object after exception handling?
Explain what access modifiers can be used for variables?
What is unsigned char?
Describe what happens when an object is created in java ?
What is the advantage of preparedstatement over statement?
How can you generate random numbers in java?
Why java doesn’t support multiple inheritances?
What are the important features of Java 8 release?