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
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: 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.…