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

The key difference between the two is that access to the
Hashtable is synchronized on the table while access to the
HashMap isn't. You can add it, but it isn't there by default.

Another difference is that iterator in the HashMap is
fail-safe while the enumerator for the Hashtable isn't. If
you change the map while iterating, you'll know.

And, a third difference is that HashMap permits null values
in it, while Hashtable doesn't.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the benefits of operations in java?

1129


How to implement a multithreaded applet?

2731


What does main method?

1014


What is proper subset?

1021


When is the arraystoreexception thrown?

1086


How many bits is size_t?

1031


Difference between concurrent hashmap and hashtable and collections

1132


Does java map allow duplicates?

961


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

1136


What is the use of arraylist in java?

1158


If a class is declared without any access modifiers, where may the class be accessed in java programming?

1295


What does math floor () do?

1009


What is downcasting?

1208


What is the SimpleTimeZone class?

2333


Is java se open source?

1083