Fields and Instance Variables in Java
Discover how instance variables store object state, get default values, and participate in encapsulation.
Discover how instance variables store object state, get default values, and participate in encapsulation.
Master Java for loops: traditional for loops, enhanced for-each syntax, when to use each variant, and common iteration patterns with performance considerations.
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.