Introduction
Java Records are a special kind of class introduced in Java 14, established as a standard feature in Java 16.
They are designed to encapsulate data, generating private final fields, an all-args constructor and the necessary methods for a...