What is the Set interface?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the Set interface?
Rating:
The Set interface defines a set. It extends Collection and does not allow duplicate elements to be inserted. It also does not define additional methods of its own. It is a generic interface that has the following declaration:
where E specifies the type of objects that the set will hold.
Rating:
Was this information helpful?
Other articles
- What are the methods defined by ObjectOutputStream?
- What is the ceiling() method of the NavigableSet interface?
- What is the private access specifier?
- What are the data type conversions available in Java?
- What is the headSet() method of the NavigableSet interface?