Technical Discussion :: Java

2. What is the Set interface ?


A set is a collection that cannot contain duplicate elements. Set has it's implementation in various classes like HastSet, TreeSet, LinkedHashSet. Set has only methods that are inherited from Collection and adds the restrictions to prohibit duplicate elements.

Asked In :: Tech Mahindra

Post Your Answer Here:

Name *
Alert me

Post Your Reply Here:

Report Error

Please Login First Click Here