Monday, June 8, 2020

Differences between Collection and Collections



Collection : Collection is an interface which can be used to represent a group individual objects a single entity.

Collections: Collections is an utility class present in java.util package to define several utility methods ( like sorting ,searching like ) for Collection objects.

CollectionCollections
Collection is an interface which can be used to represent a group individual objects a single entity.Collections is an utility class present in java.util package to define several utility methods ( like sorting ,searching like ) for Collection objects.
The Collection interface provides the standard functionality of data structure to List, Set, and Queue.Collections class is to provide utilities like sort,search and synchronize the collection elements.
Collection interface provides the methods that can be used for data structureCollections class provides the static methods which can be used for various operation on a collection classes

No comments:

Post a Comment

Hello Buddy, if you have any doubts or need any clarification , feel free to comment. Thanks.