Using Java records in Kotlin Records are classes in Java for storing immutable data. Records carry a fixed set of values – the records components.