Records and Sealed Classes/Interfaces in Java 17

Records -> Data carrier (immutable)