- If we want to represent a group of individual objects as a single entity then we should go for collection.
- In general, Collection interface is considered as root interface of collection framework.
- Collection interface defines the most common methods which are applicable to any collection objects.
- 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.
To read more visit official documentation of collection
Comments
Post a Comment