What are Java Records
Java Record
Java record is a type of class whose sole purpose is to drive programming with immutable data. Let’s look at a simple example.
public record Data( int x, int y)
So here we have created a record with header x and y. Here x and y are refer...
amrutprabhu.hashnode.dev5 min read