Set Interface:
Set is a child interface of Collection interface. it can be used to represent a group of individual objects as a single entity where
- Duplicate objects are not allowed.
- Insertion order is not preserved
Shorted Set:
it is child interface of Set interface. it can be used to represent a group of individual objects in to a single entity where
- All the objects are arranged in some sorting order (Can be natural sorting order or customizede).
- Duplicates are not allowed.
NavigableSet:
It is child interface of SortedSet and provides several utility methods for navigation purposes
- It doesn’t allows duplicates
- Insertion order is preserved
- It is introduced in 1.6 version
No comments:
Post a Comment