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...

difference between HashMap, Hashset and hashTable?

Answer Posted / adarsh m thimmappa

HashTable is a hashing based key-value pair data structure
- doesn't allow null as key
- doesn't allow null as value as well
- not thread safe
- oldest map based data structure available since earlier versions of java

HashMap is a hashing based key-value pair data structure
- allow one null as key
- allows multiple null as more than one value
- not thread safe

HashSet is a hashing based set representation
- holds unique set of keys
- internally uses HashMap
- allows one null value
- not thread safe

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What method is invoked to cause an object to begin executing as a separate thread?

1037


Explain about local interfaces.

1053


Can we sent objects using Sockets?

1140


What is the difference between session and entity beans?

1108


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

1044


How primary key is implemented in Oracle?

2438


which book is better for jdbc ,servlets and jsp

2099


What is the relationship between an event-listener interface and an event-adapter class?

1117


whats is mean by tiles in struts

2216


Explain the different types of memory used by jvm?

1142


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

2091


Explain ioc concept?

1138


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1043


Are there books about seam?

1099


What is scalable, portability in the view of J2EE?

2520