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
What is tostring () method?
Does java support function overloading, pointers, structures, unions or linked lists?
What does this () mean in java?
What is defined as false sharing in the context of multithreading?
What is instance example?
What is the symbol for space?
Why string is not a wrapper class?
How many bytes are a float?
Is string a class in java?
How transient variable is different from volatile variable?
What is methods in java?
What is this keyword used for?
Explain access modifiers in java.
What is difference between checked and unchecked exception in java?
What is a modifier?