November 26, 2015

Set Interface

Set is the interface having only a unique set of elements.

Sorted Set is an interface which extends from Set. It extends from collection interface.

Very important thing to remember in Set interface is there are no new methods available in Set other than Collection interface.

AbstractSet is the abstract class which implements Set interface. HashSet is concrete sub class of AbstractSet.

No comments:

Post a Comment