Collections

collection is a general term that means something like “a bunch of objects stored in a structured manner”. Java has various standard collection classes and using collections in Java allows you to organise data in memory in various convenient ways. Examples might include:

  • a simple list of strings;
  • mapping or association of strings to strings (e.g. country names to the names of their capitals);
  • a list that imposes some constraint, e.g. keeping strings in alphabetical order, or not allowing duplicates in the list.
  • basically used to store different datatypes
  • constitutes different types of classes which can be used as per requirement

Collections

 

  1. Set
  • Hash set
  • Tree set
  • Linked hash set

     

  1. Map
  • Hash map
  • Tree map

     

  1. List
  • Array List
  • Linked List
  • Vector list

     

  1. Iterator
Advertisements

Constructive and genuine appreciation and/or criticism most welcome

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s