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 purpose of the System class?

583


What are loops in java? What are three types of loops?

551


What is the purpose of skeleton and stub?

590


hi am an engineering student and my next plan is for ms in either in us or australia i got my passport but i dont know anything bout visa can u give brief idea 1)How to get prepared for visa and 2)How to apply for top universities and 3)How to pay the fee and so on These all are basic questions plz give me a clear idea

1465


What is difference between static class and normal class?

535






Explain about varargs in java?

585


What is mysql driver class name?

556


What is mean by collections in java?

569


How we can generate random numbers in java?

612


What the difference is between execute, execute Query, execute Update?

378


how to deploy tomcatserver to weblogic server? write d following steps?

1455


What is the default value of float and double datatype in java?

538


What do you mean by ternary operator in java?

562


Is string is a class in java?

527


What is nan inf?

512