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
Java is a statically typed, object-oriented language that compiles to bytecode and runs on the Java Virtual Machine, so the same build runs on any platform with a JVM. Its mature ecosystem includes the Collections framework, JDBC, JPA with Hibernate for data access and Spring Boot for web services. Java remains a mainstay for enterprise backends and large data systems, with a new long-term support release every two years.
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,…