what is the difference between HashMap and Hashtable

Answer Posted / green

HashTable is a Legacy Class,where as HashMap is not.
HashTable is Syncronized,where as HashMap is not.
HashTable does not allow any null keys nad values, HashMap
allows one null key and 'n' number null values.
comparatively HashMap is faster then HashTable

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is anonymous class in java?

734


What is a string what operation can be performed out with the help of a string?

717


What is mnemonic in assembly language?

778


How use .contains in java?

849


Differences between C and Java?

801






Why do we need wrapper classes?

769


What are the procedures?

799


What is a variable analysis?

810


What do you mean by thread safe?

734


What will be the initial value of an object reference which is defined as an instance variable?

863


what are Hostile Applets?

1776


How many types of memory areas are allocated by jvm?

744


What is the purpose of an interface?

742


Is java type safe?

712


What is exception hierarchy in java?

746