Difference between Hash Table and Hash Map?

Answer Posted / devendra.m

HashMap and HashTable both are equal...
HashMap is non-synchronized one,where as HashTable
synchronized one.
HashMap allows null as a key & value pair.
where as hashtable wont allows null as key & value pair.

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a class an object?

776


What is the purpose of finalization in java programming?

784


Is array dynamic in java?

671


Explain the importance of finally over return statement?

813


What are the restrictions that are applied to the java static methods?

753


How we can generate random numbers in java?

854


Which collection allows duplicate values in java?

731


What is garbage collection? Can it be forced to run?

745


What is natural ordering in java?

722


Is 0 true or false?

714


Is constructor inherited?

733


How do you use compareto method?

740


Java Compiler is stored in JDK, JRE or JVM?

1233


What are the object and class classes used for?

772


What is a default constructor and also define copy contrucyor?

843