Quiz di Java Collections

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

Intermedio 5 quiz · 50 domande circa 31 minuti
0/5superati Esame di categoria 20 domande miste. Con l'80% ottieni un certificato.
Tag:
1 ArrayList Facile Add, read, replace and remove elements in a Java ArrayList and avoid the immutable-list traps. #collections#list 10 domande · ~5 min Da iniziare Inizia
2 HashMap Medio Store, update and look up key-value pairs in a Java HashMap and avoid the null and hashCode traps. #collections#map 10 domande · ~6 min Da iniziare Inizia
3 HashSet Medio Keep unique values in Java sets and understand how equals and hashCode decide what a duplicate is. #collections#set 10 domande · ~6 min Da iniziare Inizia
4 Iterators & ConcurrentModificationException Difficile Remove elements while looping without ConcurrentModificationException, skipped items or surprises. #collections#gotchas 10 domande · ~8 min Da iniziare Inizia
5 Comparable & Comparator Medio Sort Java objects by natural order or custom rules with Comparable, Comparator and its helper methods. #sorting#comparator 10 domande · ~6 min Da iniziare Inizia