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 the difference between error and an exception?
Why put method is idempotent?
When should you use arraylist and when should you use linkedlist?
Why array is used in java?
Can we execute a program without main() method?
What are the different types of garbage collectors in java?
What is the purpose of extern variable?
What is an example of declaration?
What is return data type?
What is the purpose of the strictfp keyword?
What are the types of methods in java?
What does this () mean in java?
How to display all the prime numbers between 1 and 100
Which methods cannot be overridden in java?
what is singleton class in java?