Collection is the ancestor interface of the collection class, and the main interface for inheriting it is set and list.
Collections is a helper class for a collection class that provides a series of static methods for searching, sorting, threading, and so on for various collections.
Collections This class consists entirely of static methods that operate on collection or return collection
Collection is a collection interface, collections is a wrapper class (or helper Class), which is the most obvious difference between the two. Collections provides a number of static methods to handle the collection object,
1, Java.util.Collection is a collection interface. It provides a common interface method for basic manipulation of collection objects. The collection interface has many specific implementations in the Java class Library. The meaning of the collection interface is to provide a maximum unified operation for a variety of specific collections. 2, Java.util.Collections is a packaging class. It contains a variety of static polymorphic methods related to set operations. This class cannot be instantiated, just like a tool class that serves the Java collection framework.
The construction method of collections is privatized, in order to achieve the purpose of not being instantiated.
1. Collection is a top-level interface to the collection class, and its direct inheritance interface has a list and set
Collections is a tool class/helper class for the collection class, which provides a series of static methods for sorting, searching, and line Cheng of elements in the collection.
Collection is a collection class interface, which is the parent class of all collection classes, providing some operations on the collection, such as inserting, deleting, judging whether an element is its member, traversing, etc.
Comparison of collection and collections