What is the difference between Collection and Collections ?

What is the difference between Collection and Collections ?

Team Leader Asked on June 18, 2017 in JAVA.
Add Comment
1 Answer(s)

{1}Collection is an interface of the Java Collection Framework. Most of the classes in Java Collection Framework inherit from this interface. List, Set and Queue are main sub interfaces of this interface.

{2}Collections is an utility class in java.util package. It consists of only static methods which are used to operate on objects of type Collection.

 

Team Leader Answered on June 21, 2017.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.