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


Please Help Members By Posting Answers For Below Questions

Detail discussions on JVM, memory management and garbage collector.

560


When do we use hashset over treeset?

538


How to overcome the exception object reference not set to an instance of object?

626


What is externalizable interface?

584


How will you reverse a singly-link list?

601






What is canonical name in java?

625


How do you sort a list in java?

582


Where to store local variables?

587


What is a condition in java?

540


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

623


Is nan false?

537


Can you access non static variable in static context?

561


What is JFC?

715


How to perform selection sort in java?

588


Can you instantiate the math class?

604