Set Interface in Java – HashSet , SortedSet Interface , LinkedHashSet
Being a child Interface of Collection Interface, we will use Set when we want to represent a group of individual objects as a single entity, where no duplicate elements are allowed and insertion order is not preserved. Being a child interface of Collection Interface, all methods declared in Collection Interface are by-default available in Set (Interface). …
Set Interface in Java – HashSet , SortedSet Interface , LinkedHashSet Read More »