☕

Java: Collections Framework

60 cards · 🇺🇸 English

Lists, sets, maps, and the core Java Collections Framework interfaces.

Study all 60 cards for free

Flashcards, quizzes, pixel-art games and a daily review that remembers for you.

Study this deck free

Try the first 10 cards

1 / 10
Question

Java Collections Framework

Knew itLearning

Tap the card for the answer · swipe right if you knew it, left if not

Already have an account? Sign in

Cards

  1. 1Java Collections Framework
    A unified architecture for representing and manipulating collections of objects
  2. 2Root interface for the collection hierarchy
    java.util.Collection
  3. 3Main types of collections
    Set, List, Queue, Deque, and Map
  4. 4Set in Java
    A collection that contains no duplicate elements
  5. 5List in Java
    An ordered collection (sequence) that allows duplicate elements
  6. 6Queue in Java
    A collection designed for holding elements prior to processing, typically FIFO
  7. 7Deque in Java
    A double-ended queue that allows element insertion and removal at both ends
  8. 8Map in Java
    An object that maps keys to values, with no duplicate keys allowed
  9. 9General-purpose Set implementation backed by a hash table
    HashSet
  10. 10General-purpose Set implementation backed by a balanced tree
    TreeSet
  11. 11LinkedHashSet
    A HashSet with predictable iteration order (insertion order)
  12. 12General-purpose List implementation backed by a resizable array
    ArrayList
  13. 13General-purpose List implementation backed by a linked list
    LinkedList
  14. 14General-purpose Map implementation backed by a hash table
    HashMap
  15. 15General-purpose Map implementation backed by a balanced tree
    TreeMap
  16. 16LinkedHashMap
    A HashMap with predictable iteration order (insertion or access order)
  17. 17ArrayDeque
    A resizable-array implementation of the Deque interface
  18. 18SortedSet
    A Set that maintains elements in ascending order
  19. 19NavigableSet
    A SortedSet with navigation methods to find closest matches
  20. 20SortedMap
    A Map that maintains keys in ascending order
  21. 21NavigableMap
    A SortedMap with navigation methods to find closest key matches
  22. 22UnsupportedOperationException
    An optional operation is not supported by the collection implementation
  23. 23Immutable collection
    A collection where no changes to the Collection object are visible after creation
  24. 24Fail-fast iterator
    An iterator that detects concurrent modification and throws ConcurrentModificationException
  25. 25Add() method
    Adds an element to the collection, returns true if collection changed
  26. 26Remove() method
    Removes a single instance of the specified element from the collection
  27. 27Contains() method
    Returns true if the collection contains the specified element
  28. 28Size() method
    The number of elements in the collection
  29. 29IsEmpty() method
    true if the collection contains no elements
  30. 30Clear() method
    Removes all elements from the collection

And 30 more cards. Study the whole deck free

Articles about this deck

More Programming decks

See all
Study all 60 cards free