Difference between Hash Table and Hash Map?

Answer Posted / ranganathkini

Hashtable and HashMap are more less similar to each other
except that the HashMap is unsynchronized and allows nulls
whereas Hashtable is synchronized and does not permit nulls.

Is This Answer Correct ?    27 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is illegal identifier in java?

591


If a method is declared as protected, where may the method be accessed?

537


Does java runtime require a license?

578


What is the difference between a checked and an unchecked exception?

553


What about member inner classes?

634






What is collections framework?

582


Is it necessary for the port addresses to be unique? Explain with reason.

577


What do you mean by hashing?

646


What are the types of sockets in java?

543


When should I use a singleton?

562


What initialize variables?

506


Can you start a thread twice in Java?

637


What is final keyword in java?

557


What about anonymous inner classes in java?

565


Is space a character in java?

518