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 the maximum size of arraylist in java?
Is arraylist ordered?
How do you check if a string contains only numeric digits?
What is a numeric digit?
What are the three parts of a lambda expression? What is the type of lambda expression?
What is the difference between size and length in java?
What is the requirement of thread in java?
What is a generic type?
Can we write any code after throw statement?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
Is java platform independent?
Can an object subclass another object?
What are the steps that are followed when two computers connect through tcp?
Why is singleton not thread safe?
Mention some interfaces implemented by linked list in java.