Collection Vs Collections in java

Collection(I)

Collection interface represents the root interface in the collection hierarchy.

But, Map interface is also part of Java collection framework but it does not

inherit the Collection interface.

List, Set and Queue are immediate sub interfaces of Collection interface.

Syntax:

public interface Collection extends Iterable

Collection Interface Methods

Collections(C)

Collections class in java represents an utility class in java.util package.

It contains exclusively static methods that operate on or return Collection.

Syntax:

public class Collections extends Object

Collections Class Methods

--

--