Collections in Java

Group of objects is called a collection.

1. java.util contains all the classes and interfaces of the collections framework

2. We can do searching, adding, removing, manipulating and all other operations on objects in the collection.

Collection and collections are different things:

Collection is a root interface of collection hierarchy while collections is a class that provides static methods to manipulate some collection types.







Key point:

Interface extends interface and class extends class while class implements interface.



No comments:

Post a Comment