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
How does compareto work in java?
Which class is the superclass for all the classes?
What is a static class in java?
How do you sort objects in java?
What is entry set in java?
What’s the difference between callable and runnable?
How many bytes are a float?
os is developed in c no java is more secured then c na why dont the os developed is developed using java
What are different types of encoding?
Can substring create new object?
What is the difference between interface & abstract class?
What do you understand by abstract classes?
What is private public protected in java?
What’s meant by anonymous class?
Does collectionutils isempty check for null?