DAY 9
JAVA COLLECTION FRAMEWORK Collections in java is a framework that provides an architecture to store and manipulate the group of objects. All the operations that you perform on a data such as searching, sorting, insertion, manipulation, deletion etc. can be performed by Java Collections. Java Collection simply means a single unit of objects. Java Collection framework provides many interfaces (Set, List, Queue, Deque etc.) and classes (ArrayList, Vector, LinkedList, PriorityQueue, HashSet, LinkedHashSet, TreeSet etc). Collection represents a single unit of objects i.e. a group. Hierarchy of Collection Framework: Let us see the hierarchy of collection framework.The java.util package contains all the classes and interfaces for Collection framework. Methods of Collection interface There are many methods declared in the Collection interface. They are as follows: No. Method Description 1 public boolean add(Object element) is used to insert an element ...