Generic Classes in Java
Learn how to write reusable, type-safe data structures using type parameters like T, K, V in Java generic classes.
Learn how to write reusable, type-safe data structures using type parameters like T, K, V in Java generic classes.
Master generic method declarations in Java including type inference, bounded parameters, and varargs with generics.
Understand HashMap: key-value storage with O(1) average lookups, hash collisions, rehashing, and performance characteristics.
Learn HashSet: unique element collections backed by HashMap, contains and add operations, and the internal ELEMENT object pattern.
Learn Java if-else branching logic: conditional statements, else-if chains, nested conditionals, and operator precedence considerations for decision making.
Master Java inheritance: extends keyword, super, method overriding, and the substitutability principle.
Master pure contracts: default methods, static methods, functional interfaces, and how interfaces define behavior in Java.
Read, write, and navigate files with java.io and java.nio.file: Path, Files, BufferedReader, BufferedWriter, and directory walking.
Master Java collection iteration: Iterator and ListIterator interfaces, for-each loop, fail-fast behavior, and concurrent modification.
(params) -> expression or (params) -> { statements } — write concise function literals in Java for functional interfaces.