what is the difference between HashMap And HashTable?

Answer Posted / raghu

HashMap only one null key and multiple values. Hashtable
doesn't allow null keys and values, it throws
NullPointerException. Both are not guarantee order. HashMap
is unsyncronized, whereas Hashtable is not.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different exception types exceptions available in java ?

490


Can we declare array without size in java?

559


Explain a few methods of overloading best practices in java?

521


What is static and final keyword in java?

577


List types of storage classes in java?

629






What is pojo class in java?

542


Why use string handling in Java?

589


What is static keyword?

596


What are the different access modifiers available in java?

565


What are unchecked exceptions in java?

624


What is a variable in java?

544


Explain the importance of throws keyword in java?

578


What is the purpose of static keyword in java?

525


How to do a true java ping from windows?

622


What is the purpose of an interface?

562