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
What is equals method in java?
Explain abstract class in java?
When super keyword is used?
What are different types of expressions?
What is the basic difference between string and stringbuffer object?
How can you generate random numbers in java?
What is meant by vector class, dictionary class, hash table class, and property class?
What is a variable analysis?
What is the buffer limit?
What is the full name of java?
What is the difference between method overriding and overloading?
Which are different kinds of source code?
How to make a read-only class in java?
What is the static keyword?
What is the Scope of Static Variable?