Practice: Model a Library System with OOP (Part 1: Domain Design)
Executive Summary: Part 1 of the library system project designs a Java domain model across model and event…
Category
This Java programming series goes from first classes to production Spring Boot apps. It has more than seventy posts, so it works as a full course.
Early posts cover the language and collections. Later, JDBC fundamentals and JPA and Hibernate add data access. Finally, testing Spring Boot apps ties it all together.
74 articles
Executive Summary: Part 1 of the library system project designs a Java domain model across model and event…
Executive Summary: Sealed classes and interfaces in Java list their permitted subtypes, so the compiler knows every variant.…
Executive Summary: A Java record declares an immutable data carrier in one line, and the compiler generates the…
Executive Summary: Java enums define a fixed set of singleton constants that can carry fields, constructors, and per-constant…
Executive Summary: Use an abstract class when related classes share state or a fixed workflow, and an interface…
Executive Summary: Every Java class inherits equals, hashCode, toString, and clone from Object, and the defaults use identity.…
Executive Summary: In Java, a subclass inherits from its parent, can override its methods, and runs the overridden…
Executive Summary: Encapsulation in Java means keeping fields private and exposing behavior through methods that enforce the object’s…
Executive Summary: Java constructors initialize objects at creation, and good ones make invalid objects impossible. I cover classes…
Executive Summary: Gradle builds Java projects from a build.gradle.kts file using plugins, repositories, dependencies, and a toolchain that…
Executive Summary: This beginner project builds a Java number guessing game with Random, a Scanner input loop, replay,…
Executive Summary: Maven builds Java projects from a pom.xml that declares coordinates, dependencies, and plugins. I cover transitive…
Executive Summary: This practice project builds a single-file Java CLI calculator with one-shot and interactive modes and switch-expression…
Executive Summary: Java arrays are fixed-length containers with helpers in java.util.Arrays, and Strings are immutable. I cover creating,…