Category: Certification Exams of Java

Introducing the canonical and compact constructors for records 2 – Record and record patternIntroducing the canonical and compact constructors for records 2 – Record and record pattern

Reassigning components Via an explicit canonical/compact constructor we can reassign components. For instance, when we create a MelonRecord we provide its type (for instance, Cantaloupe) and its weight in grams

Adding more artifacts in a record Certification Exams of Java Getting a list from a stream Java Exams Tackling guarded record patterns Tackling records in Spring Boot Understanding records serialization

Understanding records serialization 2 – Record and record patternUnderstanding records serialization 2 – Record and record pattern

Serializing/deserialzing gacContainer (typical Java class) The gacContainer object is an instance of MelonContainer which is a plain Java class. MelonContainer gacContainer = new MelonContainer(  LocalDate.now().plusDays(15), “ML9000SQA0”,    new Melon(“Gac”, 5000)); After

Adding more artifacts in a record Certification Exams of Java Getting a list from a stream Java Exams