what is the difference between HashMap and Hashtable
Answer Posted / sarithareddy
Hashmap work as like as Hashtable but hashtable is
synchronised hash map was not sychronized
hashtable does not allow null values
hashmap allows null values
| Is This Answer Correct ? | 123 Yes | 16 No |
Post New Answer View All Answers
How are variables stored?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What will happen if non-synchronized method calls a static synchronized method and what kind of lock it acquires?
how is final different from finally and finalize in java?
What is a war file?
What is the difference between hashmap and hashtable in java?
What are the main uses of this keyword?
Explain java heap space and garbage collection?
What is singleton class in java and how can we make a class singleton?
What is integer size in java?
What is difference in between java class and bean?
What is a variable simple definition?
What is the collections api?
When would you use a static class?
What is the gregoriancalendar class in java programming?