Quiz Java Collections

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

Trung cấp 5 quiz · 50 câu hỏi khoảng 31 phút
0/5đạt Thi chủ đề này 20 câu trộn lẫn. Đạt 80% nhận chứng chỉ.
Tag:
1 ArrayList Dễ Add, read, replace and remove elements in a Java ArrayList and avoid the immutable-list traps. #collections#list 10 câu · ~5 phút Chưa làm Bắt đầu
2 HashMap Trung bình Store, update and look up key-value pairs in a Java HashMap and avoid the null and hashCode traps. #collections#map 10 câu · ~6 phút Chưa làm Bắt đầu
3 HashSet Trung bình Keep unique values in Java sets and understand how equals and hashCode decide what a duplicate is. #collections#set 10 câu · ~6 phút Chưa làm Bắt đầu
4 Iterators & ConcurrentModificationException Khó Remove elements while looping without ConcurrentModificationException, skipped items or surprises. #collections#gotchas 10 câu · ~8 phút Chưa làm Bắt đầu
5 Comparable & Comparator Trung bình Sort Java objects by natural order or custom rules with Comparable, Comparator and its helper methods. #sorting#comparator 10 câu · ~6 phút Chưa làm Bắt đầu