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 / green

HashTable is a Legacy Class,where as HashMap is not.
HashTable is Syncronized,where as HashMap is not.
HashTable does not allow any null keys nad values, HashMap
allows one null key and 'n' number null values.
comparatively HashMap is faster then HashTable

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the range of a character variable?

986


What is a concrete classes? Is Java object class is concrete class?

975


When should I use a singleton?

1039


What is the difference between Java1.4 and Java1.5

2305


What is the generic function?

982


What is the difference between access specifiers and access modifiers in java? 16

991


What is pre increment and post increment in java?

983


What are scalar data types?

1059


When throw keyword is used?

1058


Does java vector allow null?

952


What is the private method modifier?

1085


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1101


Why declare Main() method as a static in java ?

1073


Does every java program need a main?

991


Can we serialize arraylist in java?

1001