Skip to main content

Collection Interface

Interface Collection<E>


caution

The differences between the Collection and Collections are:~

  • The Collection is an INTERFACE whereas Collections is a CLASS.
  • The Collection interface provides the standard functionality of data structure to List, Set, and Queue. However, Collections class is to sort and synchronize the collection elements.
  • The Collection interface provides the methods that can be used for data structure whereas Collections class provides the static methods which can be used for various operation on a collection.

tip

REFERENCE:~

Java Collection Interface Hierarchy