Java Developer since 2011, Pittsburgh JUG leader, Committer at Eclipse Collections Java Library.
Ever since Java announced their 6-month release cycle, there is excitement around exploring new features and even more so with preview features.
Now, what is a record? It is a new variety of type declaration. It is also a sub-type of class. A common type of class, as we all know, is the data-carrier class. They are classes that have some fields and their corresponding getters and setters. They usually have little to no logic.
Records help provide a way to succinctly describe the intent of these data-carrier classes. A little less conversation, a little more action.Sirisha Pratha