SortedSet Interface

SortedSet was introduced in java 1.2 version

Features of SortedSet : (When to use SortedSet)

  • SortedSet is a child Interface of Set Interface
  • If you want to represent a group of individual objects as a single entity where duplicates are not allowed but all objects should be inserted according to some sorted order then we should use SortedSet

Leave a Comment