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

What do you mean by access modifier?

561


What is the function of java?

517


What is consumer interface?

562


why using interface interface ?

1514


Tell us something about set interface.

566






Can one thread block the other thread?

609


What is difference between synchronize and concurrent collection in java?

525


What is the difference between a loader and a compiler?

530


What about features of local inner class?

621


Can you make a constructor final in Java?

629


What is the difference between Java1.4 and Java1.5

1831


Explain about the security aspect of java?

577


What is the difference between jdk, jre, and jvm?

576


What are the differences between path and classpath variables?

500


What is the difference between processes and threads?

538