collection-framework

Java Collection Hierarchy

Java Collection Framework provides a set of data structures and interfaces that developers can use to manage and manipulate collections of objects.

  • ArrayList

  • LinkedList

  • Vector

  • Stack

  • HashSet

  • LinkedHashSet

  • TreeSet

  • HashMap

  • LinkedHashMap

  • TreeMap

  • Hashtable

  • Queue (interface)

  • PriorityQueue

  • ArrayDeque

Common methods for classes in Collection framework

Common methods in Collection Interface include :

  • add

  • remove

  • contains

  • isEmpty

  • size

  • iterator

Iterator class

Last updated