A record named `Book` has fields `title` (String) and `pageCount` (int). Can you modify the `pageCount` of a `Book` object after creation?

Yes, by calling a setter method.

Yes, by directly modifying the field.

No, records are immutable

Depends on the access modifiers of the fields

Verified Answer
Correct Option - c

To get all Infosys Certified Java SE 17 Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in