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 |
How can we create an immutable class in java?
How can we achieve thread safety in java?
What is the difference between equals() and == in java?
What is java english?
Where are variables stored?
What is string data type?
What is the purpose of a statement block?
What is executor memory?
How many types of memory areas are allocated by JVM in java?
What is meant by data hiding/encapsulation?
Write a java program to count the number of words present in a string?
Can final class have constructor?