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 loop in java?

928


Why singleton is not thread safe?

942


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8008


Is null a string in java?

1006


What do you mean by order of precedence and associativity?

892


What is difference between module and function?

1082


Define immutable object?

1005


What is the difference between a constructor and a method?

1156


What is array length in java?

911


What is Recursion Function?

1128


What is stringbuffer in java?

1003


What does the “static” keyword mean?

1045


Is there a case when finally will not execute?

942


What is pre increment and post increment in java?

942


What is a finally block? Is there a case when finally will not execute?

989