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
What is the difference between an array and an array list?
How can you read an integer value from the keyword when the application is runtime in java? example?
What is matcher in java?
How to set the permissions to a file in java?
What is the difference between error and an exception?
Can we declare array without size in java?
What is the basic difference between string and stringbuffer object?
What is the difference between static (class) method and instance method?
Who is founder of java?
What is the difference between a checked and an unchecked exception?
Compare Mutex and Semaphore in java.
Can we override static methods in java?
What is a class instance variable?
Is java a security risk?
Why are getters and setters used?