Java 16 – Records

What are Records? 

Records are a new type of class which work with immutable data.  

General Q & A 

What does a record look like? 

How can you use it? 

output 

Code example can be found here.  

Final Thoughts 

Great for reducing boiler plate code, DTOs, etc. 

1 thoughts on “Java 16 – Records

  1. Pingback: Java Versions & Features - Spaghetti Code Jungle

Leave a Reply

Your email address will not be published. Required fields are marked *