Java Collection Interface

A collection represents a group of objects, known as its elements. Some collections allow duplicate elements and others do not. Some are ordered and others unordered. There are two main interfaces for all the collection types in Java:
  • Collection<E> :Group of objects, which may restricted or manipulated in some way
    • E.g. an ordered to make a List or LinkedList
    • E.g. a Set, an unordered group which can only contain one of each item
  • Map<K,V> :Associative array, Dictionary, Lookup Table, Hash
    • A group of name-value pairs


Search: