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 / brijendra kumar soni(xavient)

1-Hashmap is nonSyncronized whereas Hastable is Syncronized.

2-Hashmap allows both key and values are Null whereas
Hastable doesnot allow Null values.

3-Hasmap belongs to Collection package whereas Hashtable is
a class.

4-The class Hashmap implements the map interface whereas
Hastable implements the class.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is collatration?

3242


what is the purpose of the runtime class?

1025


Tell me the latest versions in java related areas?

1055


Is static a keyword in java?

928


Explain what do you mean by functional overloading in java?

961


What is double checked locking in singleton?

1021


Wha is the output from system.out.println(“hello”+null); ?

1097


Can a abstract class be declared final?

959


What are the data types supported by java? What is autoboxing and unboxing?

962


What is the difference between hashmap and hashtable in java?

1066


what type of questions asked for barclays technologies pune please send urgent

5618


Define iterator and methods in iterator?

927


What is n in java?

908


How are java objects passed to a method and what are native methods?

1033


What is internal variable?

979