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

What are the types of sockets in java?

1114


Is java se open source?

1009


What is the purpose of static keyword in java?

943


What is the difference between overriding & overloading?

1046


Is alive method in java?

947


What is deserialization?

1008


How do you clear a list in java?

1102


What will happen if a thrown exception is not handled?

994


I want to re-reach and use an object once it has been garbage collected. How it's possible?

1003


Does java list allow null?

965


What is stream api in java8?

1141


What is a percentage sign called?

1100


What are "class access modifiers" in Java?

1109


What is the default size of load factor in hashing based collection?

1028


Explain importance of inheritance in java?

998