what is the difference between HashMap and Hashtable

Answer Posted / venkatesh marni

in the HashMap & Hashtable wen ever key values are Same then
it maps only to the value which is mapped at last.
REFER to the ANS.9 above we can access only one value.

but Hashtable is Synchronized one and it wont stores any
null values.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we override equals() method?

571


what is aggregation in java?

588


Can list contain null in java?

629


When should I use a singleton?

562


What are the differences between getting and load method?

546






Why is boolean important?

593


What are namespaces in java?

527


Write a program to reverse array in place?

593


What are constructors in java?

574


What is hash table in java?

494


What is a vararg?

556


If goto and const is reserve words than why it is not work in java?

1510


What is the purpose of file class?

550


Explain try and catch keywords in java?

623


Define how objects are stored in java?

567