- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
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.
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
No quiz matches. Try another word or tag.