TreeSet Class In Java Collection Framework

TreeSet(under java.util package) is one of the most widely used Collection class in Java. TreeSet underlying data structure is Balanced Tree. As TreeSet implements Set,...

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....

Stack Class In Collection Framework

Stack class is child class of Vector class present in java.util package. Its specially designed collection class for Last In First Out (LIFO) operations. It extends...