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 the largest number a double can hold?

553


If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?

695


Explain different forms of polymorphism?

644


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1501


Does java return by reference?

529






What is the purpose of return statement?

617


Is 0 true or false?

507


Is the milky way in a void?

536


Is main an identifier?

539


What do you mean by singleton class in java?

508


What is the access scope of a protected method?

557


Can we override singleton class?

528


How many types of the indexof method are there for strings?

481


What is bytecode verifier?

490


Explain super keyword in java.

572