ProAnswers.org

What is the Set interface ?

• The Set interface provides methods for accessing the elements of a finite mathematical set

• Sets do not allow duplicate elements

• Contains no methods other than those inherited from Collection

• It adds the restriction that duplicate elements are prohibited

• Two Set objects are equal if they contain the same elements