Question 1
Which statement about records is correct?
A. Record components are mutable via generated setters
Records never generate setters; components are immutable after construction and are exposed only through accessors, so there is no mutation path.
B. A record is implicitly final and its components map to private final fieldsCorrect answer
Correct: every record class is implicitly final, implicitly extends java.lang.Record, and stores each header component in a private final field with a public accessor and no setter.
C. A record can extend another class
Records cannot declare an extends clause; the superclass is always java.lang.Record, so a record cannot extend another class.
D. A record may declare additional instance fields beyond its components
Instance fields outside the record header are a compile-time error; only static fields may be added in the body.
Explanation
Every record class is implicitly final, implicitly extends java.lang.Record, and turns each header component into a private final field exposed by a public accessor with no setter. Records lock down instance state and inheritance while still permitting interfaces, static members, and extra methods, so the skill is separating what is restricted from what remains allowed.