Sets in Java Collections Framework
This directory covers Set implementations in Java, designed for storing unique collections of data.
Lessons Map
1. HashSet (Unordered, Unique elements)
- HashSet Comprehensive Guide: Core concepts, common methods, complete programs, and best practices.
- HashSet Internal Workings: Hashing, private transient HashMap, and dummy
PRESENTvalue. - HashSet Interview Questions: Tech interview Q&As on hashing and custom keys.
2. LinkedHashSet (Preserves Insertion Order)
- LinkedHashSet Comprehensive Guide: Order preservation, traversal, and complete programs.
- LinkedHashSet Internal Workings: Package-private constructor redirection and LinkedHashMap backing.
- LinkedHashSet Interview Questions: Interview Q&As on insertion order vs capacity.
3. TreeSet (Preserves Sorted Ordering)
- TreeSet Comprehensive Guide: Sorted order, Comparators, and NavigableSet range queries.
- TreeSet Internal Workings: Backing TreeMap structures and self-balancing Red-Black trees.
- TreeSet Interview Questions: Q&As on Comparable custom classes and search times.
Back to Collection Framework Home: JCF Index