FlashKeepers

Java · College · College and University

Java III: Collections and Generics

The Java Collections Framework (List, Set, Map, Queue, Deque), Comparable and Comparator, iterators, and generics with wildcards and bounds.

About this set

40 basic cards for College Java. Set 3 of 6 in Java. It opens with "What is the root interface of the Java Collections Framework?" and "What are the three main branches extending from the Collection interface?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What is the root interface of the Java Collections Framework?
Show answerCollection
What are the three main branches extending from the Collection interface?
Show answerList, Set, and Queue
Is Map part of the Collection interface hierarchy?
Show answerNo, Map is a separate interface root that does not extend Collection
What is ArrayList?
Show answerA resizable array-based implementation of List, backed by a dynamic array
What is LinkedList?
Show answerA List implementation using a doubly-linked list of nodes
What is the key speed tradeoff between ArrayList and LinkedList?
Show answerArrayList has fast random access but slower insertion/deletion at the beginning; LinkedList has faster insertion/deletion but slower access
What does the Set interface guarantee about its elements?
Show answerNo duplicate elements are allowed
What is HashSet?
Show answerAn unordered Set implementation based on a hash table
What is LinkedHashSet?
Show answerA Set that maintains insertion order using a hash table with linked structure
What is TreeSet?
Show answerA sorted Set implementation using a red-black tree, ordered by natural ordering or a custom Comparator
Name the three main List implementations
Show answerArrayList, LinkedList, Vector
Name the three main Set implementations
Show answerHashSet, LinkedHashSet, TreeSet
What does Map store as its basic unit?
Show answerKey-value pairs, also called entries
What is HashMap?
Show answerAn unordered Map implementation using a hash table
What is TreeMap?
Show answerA sorted Map implementation using a red-black tree, sorted by keys

25 more cards in the app

Study this set free