Note - Java Collections

 A collection is an object that groups multiple elements into a single unit and used to store, retrieve,manipulate, and communicate aggregate data.

 Collections framework
  • Interfaces
All the core collection interfaces are generic.
    Set is a special kind of collection and that can not have duplicate elements.
    List(sometimes called a sequence) can contain duplicate elements.
    Queue -FIFO manner, and provides insertion, extraction and inspection operations
    Deque - both FIFO and LIFO, and provides insertion, extraction and inspection operations
    Map -  has key and values, can not contain duplicate values
  •  Implementations
Implements are the data objects used to store the collections.
    General purpose implementations
    Special purpose implementations
    Concurrent implementations
    Wrapper implementations
    Convenient implementations
    Abstract implementations
  • Algorithms
     Sorting
     Shuffling
     Routing Data Manipulation
     Searching
     Composition
     Finding Extreme Values 
     Benefits of the java collections framework
  • Reduces programming effort
  • Increases program speed and quality
  •  Allows interoperability among unrelated APIs
  • Reduces effort to learn and to use new API s
  • Reduces effort to design new APIs
  • Fosters software reuse
Lab0 Exercises

content taken from Oracle docs

Comments

Popular posts from this blog

How to push a file into a docker container

Docker - Begginer 1

Project(on going) - IPv6 Fragmentation