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

Why is string immutable in java?

1056


How many times may an objects finalize() method be invoked by the garbage collector?

1045


What is a class loader? What are the different class loaders used by jvm?

1053


Which javutil classes and interfaces support event handling?

994


how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.

2203


Explain the advantages and disadvantages of detached objects.

966


What is the difference between RMI registry and OS Agent?

1074


What is Remote Server?

2145


Why do I get a duplicate name error when loading a jar file?

1078


What is the purpose of the wait() method?

1107


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4172


What is table mutation and how do you avoid it?

2417


What is the difference between the string and stringbuffer classes?

1037


What are the difference between RMI and CORBA?

1057


What is the difference between RMI and Corba?

2676