what is the difference between HashMap and Hashtable

Answer Posted / sarithareddy

Hashmap work as like as Hashtable but hashtable is
synchronised hash map was not sychronized
hashtable does not allow null values
hashmap allows null values

Is This Answer Correct ?    123 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make a class or a bean serializable?

755


What are streams?

873


Explain all java features with real time examples

1467


What is singleton pattern?

816


Why 1 is not a prime number?

810


What is a boolean used for?

868


What does int argc char * argv [] mean?

745


what is function overloading in java?

982


Is java a virus?

740


Write a program to show whether a graph is a tree or not using adjacency matrix.

873


What is mnemonic in assembly language?

838


Tell me a few examples of final classes defined in Java API?

803


What are the two ways of implementing multi-threading in java?

1183


Is array synchronized in java?

837


How does compareto work in java?

807