Java

LinkedHashSet Class In Java Collection Framework

LinkedHashSet class present in java.util package. As LinkedHashSet implements Set interface, so duplicates are not allowed in LinkedHashSet, but for LinkedHashSet insertion order is preserved too. If we are not using generic implementation of LinkedHashSet then Heterogeneous objects are allowed. Note: LinkedHashSet is the best choice to develop cache based application, where duplicates are not allowed and …

LinkedHashSet Class In Java Collection FrameworkRead More »