The space station orbits above the Andes mountain range in Bolivia

🧼 How to Cleanly Remove Snap Java and Install OpenJDK via APT on Ubuntu

If you're running Ubuntu or a Snap-enabled Linux distribution, you may have encountered issues with Java installations through Snap. In this post, we’ll walk you through removing the Snap version of OpenJDK, cleaning your system, and installing the latest OpenJDK (version 21) using APT—a more stable and developer-friendly method.
Java records

Java records

In summary, Java records offer a convenient way to create immutable-like classes, but be cautious when dealing with fields that reference mutable objects.