















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















Collection
Set List Queue
SortedSet
Map
SortedMap
Core Collections Framework
(Cont’d)
Set
HashSet TreeSet LinkedHashSet
Set Implementation Comparisons
HashSet TreeSet Linked HashSet
Storage Type Hash Table Red-Black Tree Hash Table with a Linked List
Performance Best performance Slower than HashSet
Little costly than HashSet
Order of Iteration No guarantee of order of iteration
Order based Orders elements based on insertion
list interface offers
List
Arraylist Vector Linkedlist
for(ListIterator
Purpose Throw Exception
Return Special Value
Insert Inserts an elements to the queue
add(obj) offer(obj)
Remove Remove head of the queue and return it.
remove() poll()
Examine Return the head of the queue
element() peek()
Map
HashMap TreeMap Linkedlist HashTable
as defined by a comparator provided at instantiation time.
order.