How can you eliminate duplicates?

Answers were Sorted based on User's Feedback



How can you eliminate duplicates?..

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

How can you eliminate duplicates?..

Answer / ravikiran(aptech mumbai)

by making using of HashSet

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is substring of a string?

1 Answers  


what is inner class?

6 Answers   HCL,


What is a default method?

0 Answers  


What are the default and parameterized constructors?

0 Answers  


How to provide security in java

0 Answers   Infosys, TCS, Tech Mahindra,






In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not????

12 Answers   Accenture,


Where is core java used?

0 Answers  


In case of inheritance what is the execution order of constructor and destructor?

0 Answers   Agilent,


What are the types of java languages?

0 Answers  


What is the multi-catch block in java?

0 Answers  


How do you check if a character in a string is a digit or letter?

0 Answers  


What is map in java?

0 Answers  


Categories