Collection Interface
Interface Collection<E>
caution
The differences between the Collection and Collections are:~
- The
Collectionis an INTERFACE whereasCollectionsis a CLASS. - The
Collectioninterface provides the standard functionality of data structure toList,Set, andQueue. However,Collections classis tosortandsynchronize the collection elements. - The
Collectioninterface provides themethodsthat can be used for data structure whereasCollections classprovides thestatic methodswhich can be used for various operation on a collection.
tip
REFERENCE:~
- Official Documentation:-
Java 14java.util.Collectionshttps://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/util/Collection.html - ....
