What is the Set interface

The Set interface provides methods for accessing the elements of a finite mathematicalset. Sets do notallow duplicate elements.

Showing Answers 1 - 1 of 1 Answers

The Set interface extends the Collection interface.It contains only methods inherited from Collection interface,some methods are:

1.add( )-Adds an object to the collection.
2.clear( )-Removes all objects from the collection.
3.contains( )-Returns true if a specified object is an element within the collection.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions