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
Can an interface be defined inside a class?
Which is faster set or list in java?
What is a local block?
Which is the class in java?
What is data structure in java?
how its run?
What is the indent key?
Why java is not 100% object-oriented?
What is a finally block?
Explain the difference between call by refrence and call by value?
Can we return null in java?
Does .length start 0 java?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What one should take care of, while serializing the object?
Can list have duplicates in java?