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

How to declare unique ArrayList ?

Answer Posted / ballu

i think java does not this in built facility ... you would
need to make sure that objects inserted in array are unique
( by overriding equals() and hash() method of Object class

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class declared as private be accessed outside it’s package?

1062


What is the difference between logical data independence and physical data independence?

1088


Can we change the scope of the overridden method in the subclass?

1457


Is null or empty java?

1035


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2161


Why do we use variables?

1045


How do you write methodology?

1027


Can we overload run() method in java?

1264


Which collection allows duplicate values in java?

1025


Is singleton a bad practice?

1107


How do you achieve polymorphism in java?

1037


Define linked list and its features with signature?

1050


Is linkedlist thread safe in java?

1034


What is the difference between stream and buffer?

1020


What about instanceof operator in java?

1067