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

HashMap -
1) unsynchronized and unordered
2) Allow one null key , multiple null values


HashTable -
1) synchronized and unordered
2) Doesn't allow null key and value


HashSet -
1) synchronized and ordered
2) Sort elements in ascending order , doesn't allow duplicate elements

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is table mutation and how do you avoid it?

2423


how i secure my site with the https protocol.what are the steps?

2284


What are the pros and cons of detached objects?

939


What’s jboss jbpm?

975


what are RemoteObjects?

2695


Explain about RMI Architecture?

1039


what are the activation groupworks?

2139


Explain ioc concept?

1080


How are commas used in the intialization and iteration parts of a for statement?

1058


How to pass parameters in RMI?

2224


What is an abstract method?

1010


what are the advantages of JTA over JTS?

2153


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

1024


what are getters and setters in Java with examples?

1739


Should synchronization primitives be used on bean methods?

1011