Difference between Hash Table and Hash Map?
Answer Posted / ravikiran
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 ? | 12 Yes | 2 No |
Post New Answer View All Answers
What is ordered map in java?
what is the purpose of the runtime class?
What are instance variables?
What is hash in java?
Can a class be declared as protected?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
How do constructors use this() and super()?
What is the hashcode () and equals () used for?
What is the purpose of encapsulation?
What is math exp in java?
Which is dependent variable?
Can we declare an array without size in java?
What is stack example?
How many types of string data types are there?
Is ++ operator thread-safe in java?