Utility Classes: Objects, Math, Random, and UUID
Executive Summary: The JDK’s utility classes cover null-safe checks, exact math, random numbers, and IDs. I’ll walk through…
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: The JDK’s utility classes cover null-safe checks, exact math, random numbers, and IDs. I’ll walk through…
Executive Summary: The java.time API separates human dates from machine timestamps. I’ll cover LocalDate and LocalDateTime for calendar…
Executive Summary: Optional in Java is a container that is either present or empty, meant for query results…
Executive Summary: Parallel streams split work across the shared ForkJoinPool, and they only help under specific conditions. I…
Executive Summary: Java streams end in a value through reduce or collect. I cover reduce with an identity…
Executive Summary: A Java stream is a one-use, lazy pipeline over a source such as a collection, array,…
Executive Summary: A Java lambda implements the single abstract method of a functional interface. I cover the standard…
Executive Summary: Create a custom Java exception when a failure has domain meaning that callers need to handle…
Executive Summary: Every Java exception descends from Throwable, split into Errors, checked exceptions, and unchecked RuntimeExceptions. I cover…
Executive Summary: Java generics give you type-safe, reusable code with no casts. Here I cover generic classes and…
Executive Summary: Choosing a Java collection comes down to access pattern, ordering needs, key types, and data size.…
Executive Summary: Java Maps store values by unique keys and Queues control processing order. I cover HashMap, LinkedHashMap,…
Executive Summary: The Collections Framework separates interfaces like List and Set from their implementations. I explain when to…
Executive Summary: Part 2 of the library system project adds behavior and persistence to the Java domain model.…