what is the difference between HashMap and Hashtable

Answer Posted / avinash

1. Hash map is not is synchornized
2. Hash map is allow null value only at once.
3. iterator is fail safe

1.Hash table is synchronized.
2. Hash table isnot allow null value.
3. enum hashtable is not.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of optional ?

822


State two differences between C and Java.

980


What are different types of classloaders?

799


Difference between class#getinstance() and new operator ?

906


What is the dot operator?

777


What is an object in java?

795


What is the internal implementation of set in java?

712


Can a class extends itself in java?

795


How many bytes is a string java?

773


What is natural ordering in java?

750


How do you reverse a word in java?

770


What exactly is methodology?

697


Explain a situation where finally block will not be executed?

790


What is illegal identifier in java?

779


What is numeric function?

749