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

What is the final class modifier?

555


How to sort elements in a parallel array in java?

503


What is nested loop? What is dangling else condition in it?

572


What are the advantages of exception handling in java?

648


what is method reference in java 8?

550






Can we override the private methods?

519


What is sleep method?

619


What is final keyword in java?

547


Why we use methods in java?

530


What is an empty string in css?

523


What is finalize() function in java?

559


What is a variable and constant?

543


What is the final blank variable?

584


Which is better stringbuffer or stringbuilder?

523


Can we define private and protected modifiers for the members in interfaces?

531