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 is immutable data?

819


What is replacefirst in java?

781


What is a null check?

756


Can singleton class be inherited in java?

737


What kind of variables a class can consist of?

853


What do you know about java?

719


What is a dot notation?

760


What is the use of 'super' keyword inside a constructor?

741


Write a program based on Java script program.

851


Differentiate between a class and an object.

799


Explain the different forms of polymorphism?

770


What is an interoperable application in java ?

762


Can we use a switch statement with strings?

767


What isan abstract class and when do you use it?

1183


Can we pass null as argument in java?

695