1. If we want to represent a group of individual objects as a single entity then we should go for collection.
  2. In general, Collection interface is considered as root interface of collection framework.
  3. Collection interface defines the most common methods which are applicable to any collection objects.
  4. It extends Iterable interface.

collection interface does not contain any method to retrieve objects because there is no concrete class which implements collection class directly.

collection interface methods

To read more visit official documentation of collection

LEAVE A REPLY

Please enter your comment!
Please enter your name here