Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between HashMap and Hashtable

Answer Posted / chandan phukan

Two main differences between Hastable and HashMap are

1. Hashtable is synchronised but HashMap is not.
2. Hashtable does not allow "null" key but HashMap allows
"null" Key.

However one point to remember is that only one "null" key is
allowed in HashMap but multiple "null" values are allowed in
HashMap.

Is This Answer Correct ?    75 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you read and print a string in java?

958


Explain the importance of throwable class and its methods?

1040


Why arraylist is used in java?

1075


Can a method be overloaded based on different return type but same argument type?

970


Does java allow overriding static methods ?

1114


What is the purpose of nested class in java?

1087


What is the java virtual machine?

1095


What is the purpose of using java.lang.class class?

1016


What is the meaning of flag day?

1024


What is the difference between Java and C++?

1198


What is object class in java?

927


What is enhanced loop in java?

989


What is int short for?

1051


Explain jdk, jre and jvm?

976


Define the term string pool?

1007