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

Difference between this() and super() ?

1114


Are arrays primitive data types?

1184


Explain the transient field modifier?

1048


How many decimal places is a double?

995


What do you mean by compiler?

1043


What data type is a string?

1014


What are different data types?

1022


Is null false in java?

1193


What are local variables?

1053


What are the five major types of reference sources?

1128


What's the difference between an abstract class and interface in java?

1031


Does collectionutils isempty check for null?

1424


Why singleton pattern is better than creating singleton class with static instance?

1000


What is number data type in java?

1013


What are the supported platforms by java programming language?

1045