what is the difference between HashMap And HashTable?
Answer Posted / stalin
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 ? | 8 Yes | 0 No |
Post New Answer View All Answers
what methods would you overwrite in java.lang.object class?
What is a char in java?
How do you declare an array that will hold more than 64KB of data?
What is proper subset?
What is the maximum size of list in java?
Where are global variables stored?
What is static keyword?
What is var keyword ?
What is the difference between integer parseint and integer valueof?
What is return keyword in java?
What are abstract classes and anonymous classes?
What do you mean by Hash Map and Hash Table?
What is the difference between sleep and wait in java?
Give the difference between the println method and sqrt method?
What are access specifiers in java ?