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

State one difference between a template class and class template.

832


Can keyword be used as identifier?

729


What is the java reflection api? Why it’s so important to have?

751


Why is java called the platform independent programming language?

787


Is hashset ordered?

759


Explain about version control?

766


What is xslt in java?

725


What is difference between final and finally in java?

809


Can a class have multiple constructors?

752


How will you compute size of a structure?

794


When the constructor of a class is invoked?

770


Explain the access modifiers for a class, method and variables?

876


Explain the difference between runnable and callable interface in java?

805


Why is serialization required?

725


Give some features of interface?

800