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 join () in java?
Explain working of call by reference function invoking.
What are instance variables?
What is meant by null and void?
What is <> used for in java?
What is an immutable object? How do you create one in java?
What does indexof mean?
Why for each loop is used?
What is jagged array in java?
What is the function of compareto in java?
Write a function to find out longest palindrome in a given string?
how we can make a write-only class in java?
how to convert Java project into Maven ?
Can substring create new object?
Does set allows null in java?