If set accepts only one argument then how can it compare
two objects to avoid duplicates
Answer Posted / maankutti
need to overload < operator
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Explain restrictions on using enum?
What modifiers are allowed for methods in an interface?
What is static synchronization?
What is the use of set in java?
How do you sort in descending order in java using collections sort?
Is java a software?
What does sizeof return?
What is tree in java?
What is singleton class and how can we make a class singleton?
How can we achieve thread safety in java?
What is the significance of listiterator?
What is pojo class in java?
Is main a keyword in java?
What do you mean by stack?
What is int lol?