what is difference betwwen hashmap and hashtable ?
Answer Posted / ravikiran
hashmap allows one null key and multiple null values.
hashtable doesn't allow null elements
hashmap is not synchronized
hashtable is snchronized
hashmap is not legacy
hashtable is legacy
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How do you declare a destructor in java?
Is string a class in java?
Which collection is best for sorting in java?
What are the restrictions imposed by a Security Manager on Applets?.
How do you define a variable?
How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?
Which is better stringbuilder or stringbuffer?
Where and how can you use a private constructor?
What are untrusted applets?
What is a method vs function?
What is hashmap and map?
Explain importance of throws keyword in java?
How does callback work in java?
What is the difference between break and continue statements?
How can we use primitive data types as objects?