Collections in JAVA | Collection Framework |

 

Collection_Framework

What is Collection


Any group of individual objects which are represented as a single unit is known as a collection.

A collection in JAVA is an interface. While Collections is a class

The collection framework consists of 
  • List
  • Queue
  • Set
Collection_Framework

 

List 

  • ArrayList 
  • LinkedList
  • Vector
    • Stack

Queue

  • PriorityQueue 
  • LinkedList
  • Deque  (Double-Ended Que)
    • ArrayDeque

Set

  • HashSet 
  • LinkedHashSet
  • SortedSet
    • TreeSet
Map (This is not part of the collection framework)
  • HashMap
  • LinkedHashMap
  • SortedMap
    • TreeMap
  • Hashtable

Comments