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

HashMap :
->It is a key,value pair.
->key are not duplicated but values can be duplicated.
->Null key is possible.
->It is not Synchronized by default.

Hashtable:
->It is also key,value pair but both are Strings only.
-> Keys are not duplicated but values can be duplicated.
->Null insertion is not possible of both(key and value).
->It is Synchronized by default.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between stack and queue?

1135


What is data string?

1046


How do you avoid global variables?

1139


What are the procedures?

1109


What is difference between classpath and path variables in java?

1253


Why is java multithreaded?

1042


Can we create an object of static class in java?

1052


what is mutual exclusion? : Java thread

1065


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

1289


placement papaers of spring computing technology

1454


If try block is successfully executed, Then Is Finally block executed?

1122


What is an example of a boolean?

1117


What do you mean by pointer value and address?

1089


Can a constructor be private and how are this() and super() method used with constructor?

1047


What is fundamental datatype?

1050