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
Can we increase size of array?
What is string syntax?
How many times finalize method will be invoked? Who invokes finalize() method in java?
Explain garbage collection in java?
What is local class in java?
explain local datetime api in java8?
What is linkedlist in java?
What is the use of parse function in java?
What is method overloading and method overriding?
What is a variable in java?
What is broken and continue statement?
Program to Find the second largest element in an array.
What is a newline character in java?
What is enhanced loop in java?
What is anagram in java?