Java Collection Framework Overview

Week 3 : Collection framework in java Day 11 : Collection framework : A Collection represent a group of object java collections provide classes and interfaces. Why need do we need Collections : We need collections for efficient storage and better manipulation of data in java. 1) Resize of an array. 2) Insert an element in between. 3) Delete and element in between. 4) Apply certain operations to change the array. Collection : The root interface for all the other collection types. 1) List : An ordered Collection that can contain duplicate elements . Example : arraylist, Linkedlist etc. 2) Set : A collection that cannot contains duplicate elements. Example : Hashset, Treeset. 3) Queue : A collection designed for holding elements prior to processing. 4) Deque : A double ended queue that allows insertion and removal at both ends. 5) Map : An interface that represents a collection of key value pairs . #java #backend #programming #collectionframeworks #learning #advancedjava EchoBrains

  • diagram

To view or add a comment, sign in

Explore content categories