In record patterns, it is the compiler’s responsibility to initialize the binding variables such as name and specialty. In order to accomplish this, the compiler calls the accessors of the
Introducing record pattern for instanceof 2 – Record and record patternIntroducing record pattern for instanceof 2 – Record and record pattern
Adding more artifacts in a record Certification Exams of Java Java Exams Understanding records serialization