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
What is namespace in java?
placement papaers of spring computing technology
What is r * in math?
What are the difference between composition and inheritance in java?
What is meant by data hiding in java?
What do you mean by platform independence? What is an interface?
What is the use of java?
When do we use synchronized methods in java?
What is bubble sort in java?
What is static data type in java?
What is difference between adapter class and listener?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What are the advantages of functions?
What is advantage of java?
Why do people says “java is robust”?