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
Explain naming conventions for packages?
How many bytes is double?
What is thread start?
What is final, finally, finalize?
What is t in parametric equations?
What about interrupt() method of thread class ?
What is difference between word and integer?
How do you declare a destructor in java?
Can an arraylist be empty?
Can we sort hashmap in java?
What is entry set in java?
What is the difference between the paint() and repaint() methods in java programming?
What does file separator do in java?
Explain a few methods of overloading best practices in java?
Garbage collection in java?