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 can you eliminate duplicates?

Answer Posted / deepak kumar sungh

Any Set. set always contains unique elements. However, you
must take care in case of objects where you need to define
the hashCode and equals method

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface be defined inside a class?

1066


Which is faster set or list in java?

1037


What is a local block?

1144


Which is the class in java?

1058


What is data structure in java?

996


how its run?

1072


What is the indent key?

1040


Why java is not 100% object-oriented?

1516


What is a finally block?

987


Explain the difference between call by refrence and call by value?

1026


Can we return null in java?

1160


Does .length start 0 java?

1018


Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?

1134


What one should take care of, while serializing the object?

905


Can list have duplicates in java?

912