What are the Differences Between Collection and Collections in Java ?

Main differences between Collection and Collections are...

Type : Collection is an interface in Java. Collections is a class.

Features : Collection interface provides basic features of data structure to List, Set and Queue interfaces. Collections is a utility class to sort and synchronize collection elements. It has polymorphic algorithms to operate on collections.

Method Type : Most of the methods in Collection are at instance level. Collections class has mainly static methods that can work on an instance of Collection.



You May Interest

What are the Situations in Which You Choose HashSet or TreeSet in ...

What is the Use of Jsp:useBean in JSP ?

How Can You Determine If Your Program Has a Deadlock in Java ?

What is the Lifecycle Stages of JSP ?

Can We Use Thread.sleep Method For Real-time Processing in Java ?