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
Difference between stack and queue?
What is type safety in java?
What is difference between throw and throws ?
Is java good for beginners?
how to create constants in java?
What is hashmap in java?
Can we write a class without main method in java?
How do you print array in java?
Explain the difference between call by refrence and call by value?
Why string is not a wrapper class?
What is the difference amongst jvm spec, jvm implementation, jvm runtime ?
What is nested loop? What is dangling else condition in it?
What class allows you to read objects directly from a stream in java programming?
What are methods of a class?
What is the static keyword?