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 object in java?
What are the advantages of java over C++?
What are the important features of Java 11 release?
Do you know why doesn't the java library use a randomized version of quicksort?
Is java code slower than native code?
How do you test a method for an exception using junit?
How many threads does a core java have?
What is abstract class? Explain
Does every java program need a main?
Difference between arraylist and vector.
What are the different approaches to implement a function to generate a random number?
Explain the use of sublass in a java program?
What is java beans?
What are the ways to instantiate the class class?
Can we use catch statement for checked exceptions?