Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

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

Can we have any code between try and finally blocks?

0 Answers  

Name two subclasses of the TextComponent class?

2 Answers  

Hi friends i want display Triangle shap stars(*) please can tell me any one java code logic? * *** ***** ******* Like this

2 Answers   NIIT, TCS,

Explain Event handling in AWT?

1 Answers   Infosys, TCS,

Explain about serializable interface in java?

0 Answers  

What is Difference between Serializable and Externalizable in Java serialization?

1 Answers   Cognizant, IBM,

Can a class be final?

0 Answers  

We have two methods to create methods the threads. 1. Implementing runnable interface 2. Extending to thread class and overriding run method. Among these two which one is better and why? Please explain me in detail.

2 Answers  

What environment variables are required to be set on a machine in order to run Java programs?

0 Answers   Tech Mahindra,

Can we extend the String class?

3 Answers   Truworth,

What is math floor in java?

0 Answers  

how we can make a read-only class in java?

0 Answers