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 a class have a static inner class?
How do you declare an array that will hold more than 64KB of data?
Which package is used for pattern matching with regular expressions?
What do you understand by java?
Can we able to pass objects as an arguments in java?
Does chrome use java?
Why constructor has no return type?
Explain the overview of UDP messaging.
What is the use of hashmap in java?
List the interfaces which extends collection interface?
What are scalar data types?
What is the meaning of 3 dots in java?
Which data type is class in java?
how can you take care of mutual exclusion using java threads? : Java thread
What is the final keyword?