Java Collections In Depth
Dive in depth into the world of Java Collections, from understanding equality to exploring Lists, Sets, Maps, and Queues, and all of their important implementations.
In-Depth Course for Java Developers
After watching this course, you will...
Understand the principles of equality, hash codes, and how to implement them in Java.
Gain practical experience with hashing and equality through hands-on exercises.
Grasp the concepts of time and space complexity to optimize your code.
Learn how to work with Comparator and Comparable for object comparison in Java.
Explore the use of different iterators, including fail-fast iterators, and understand the Collection interface hierarchy.
Master the List interface, including LinkedList, Vector, and advanced topics like Autoboxing and SubList.
Acquaint yourself with various Set implementations like HashSet, LinkedHashSet, SortedSet, TreeSet, and NavigableSet.
Get familiar with the Map, Queue, and Deque interfaces, and discover unique classes like WeakHashMap.
Collections overview
Equality and the equals method
Rules for equality
Walkthrough of an equals implementation
Hashing and hash codes
Equality and hash codes
Hands-on exercise
Time complexity
Space complexity and tradeoffs
Comparator and Comparable
The iterator pattern
Fail fast iterators
The Collection interface hierarchy
The List interface
Amortized time complexity
LinkedList
Vector
Autoboxing with Lists
CopyOnWriteArrayList
List iterators
SubList
Equals with List objects
The Set interface
HashSet
HashSet load factor and capacity
LinkedHashSet
SortedSet and TreeSet
TreeSet exercise
NavigableSet
The Map interface
The Queue interface
The Deque interface
WeakHashMap