Java Collections Quizzes

Use Java's everyday collections with confidence: ArrayList, HashMap and HashSet, safe removal while iterating, and sorting with Comparable and Comparator.

Intermediate 5 quizzes · 50 questions about 31 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 ArrayList Easy Add, read, replace and remove elements in a Java ArrayList and avoid the immutable-list traps. #collections#list 10 questions · ~5 min Not started Start
2 HashMap Medium Store, update and look up key-value pairs in a Java HashMap and avoid the null and hashCode traps. #collections#map 10 questions · ~6 min Not started Start
3 HashSet Medium Keep unique values in Java sets and understand how equals and hashCode decide what a duplicate is. #collections#set 10 questions · ~6 min Not started Start
4 Iterators & ConcurrentModificationException Hard Remove elements while looping without ConcurrentModificationException, skipped items or surprises. #collections#gotchas 10 questions · ~8 min Not started Start
5 Comparable & Comparator Medium Sort Java objects by natural order or custom rules with Comparable, Comparator and its helper methods. #sorting#comparator 10 questions · ~6 min Not started Start