Skip to main content

Posts

Showing posts with the label java collections tutorial

collection interface in java

Collection :Collection is an interface which is present in java.util package and used for representing a group of individual object as a single entity. Collection interface does not having any direct implementation class, collection having some  direct child interfaces and they are having implementation classes based on some specific data structure and provide  ready made method support for various operations . Child interfaces of Collection are List, Set and Queue…… Collection interface having some common methods are used for every collection objects. No. Method Description 1 public boolean add(Object element) Used to insert an object in this collection. 2 public boolean addAll(Collection c)  Used to insert the specified collection objects in the invoking collection. 3 public boolean remove(Object element) Used to delete an object from col...