How can you eliminate duplicates?
Answers were Sorted based on User's Feedback
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 |
What is identifier with example?
What is the use of static methods?
If an object is garbage collected, can it become reachable again?
How to sort the elements in HashMap
Why collection is called framework in java?
what is difference between class and object?
43 Answers College School Exams Tests, HCL,
What is data type in java?
Can we extend immutable class?
What error occurs if a try-catch-finally statement sequence does not have a catch clause?
What language is pass by reference?
What is merge sort in java?
1).Is Object class abstract or not? 2).Is main method(public static void main(String args[])low priority thread or high priority thread?