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


Please Help Members By Posting Answers For Below Questions

please send me hr interview questions in it industry

1672


What is static import in java?

534


Why is a constant variable important?

505


Can we define constructor in inner class?

545


Are primitives objects?

566






Is it compulsory for a try block to be followed by a catch block in java for exception handling?

597


How can we find the sum of two linked lists using stack in java?

574


Is an empty arraylist null?

601


What is the protected method modifier?

563


Can a class have a static inner class?

608


How big is a 32 bit integer?

532


What is a null point?

559


How to print an arraylist in java?

504


Can you declare an interface method static?

588


What is valid keyword in java?

561