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

Name three component subclasses that support painting?

1082


What are transaction attributes?

1113


What are the different approaches to represent an inheritance hierarchy?

1075


Is the infobus client side only?

1114


whats is mean by tiles in struts

2230


Difference between swing and awt?

1298


When a thread blocks on i/o?

1102


Is the ternary operator written x : y ? Z or x ? Y : z ?

1115


Write a program to show synchronization?

1149


What is local interface. How values will be passed?

1026


Describe, in general, how java's garbage collector works?

1039


How would you detect a keypress in a jcombobox?

1142


What are the call back methods in entity bean?

1072


Which component handles cluster communication in jboss?

1114


What is the difference between the session.get() method and the session.load() method?

1087