Contact Us

MariaLoftin@mimshard.com

But, even if it is allowed to add all these artifacts in a Java record, I strongly suggest you think twice before doing this. The main reason is that Java records should be about data and only data, so is kind of weird to pollute a record with artifacts that involves additional behavior. If you hit such a scenario then probably you need a Java class, not a Java record.In the next problem, we will see what we cannot add to a Java record.