Collections in Java The Collection framework represents a unified architecture for storing and manipulating a group of objects. It has: Interfaces and classes. Algorithm. Hierarchy of Collection Framework The java.util package contains all the classes and interfaces for the Collection framework. Iterable Interface The Iterable interface is the root interface for all the collection classes. It contains only one abstract method. i.e., Iterator<T> iterator() It returns the iterator over the elements of type T. Collection Interface The Collection interface is the interface which is implemented by all the classes in the collection framework. It declares the methods that every collection will have. Methods of Collection interface There are many methods declared in the Collection interface. They are as follows: No. Method Description 1 public boolean add(E e) It is used to insert an element ...