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

Is it possible to use string in the switch case?

1101


What are the different conditional statements?

1049


What kind of variables can a class consist?

1100


What is a parameter used for?

1007


What is difference between iterator access and index access?

1110


How big is a boolean?

1093


Can we have return statement in finally clause? What will happen?

1012


What is dot operator?

1092


What is numeric function?

1070


What are the important features of Java 11 release?

1160


What checkbox method allows you to tell if a checkbox is checked?

1052


What are the different types of garbage collectors in java?

1204


What is the difference between an array and an array list?

1078


What is the use of accept () method in java?

1133


What are the advantages of functions?

955