Difference between Hash Table and Hash Map?
Answer Posted / anand
HashTable is the collection which is legacy.Which doenn't
allows null keys and null values.And methods access is
synchronized.
HashMap is the collection which can allow one null key and
multiple null values.And methods access is not synchronized.
Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Detail discussions on JVM, memory management and garbage collector.
When do we use hashset over treeset?
How to overcome the exception object reference not set to an instance of object?
What is externalizable interface?
How will you reverse a singly-link list?
What is canonical name in java?
How do you sort a list in java?
Where to store local variables?
What is a condition in java?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Is nan false?
Can you access non static variable in static context?
What is JFC?
How to perform selection sort in java?
Can you instantiate the math class?