What is a Record in Java (introduced in Java 14)?
January 23, 2025
A Record is a special class for modeling immutable data:
public record Point(int x, int y) {}
Point point = new Point(10, 20);
System.out.println(point.x());
Currently Empty: ₹0.00
A Record is a special class for modeling immutable data:
public record Point(int x, int y) {}
Point point = new Point(10, 20);
System.out.println(point.x());
Whether to upskill or for any other query, please drop us a line and we'll be happy to get back to you.
Please leave us your contact details and our team will call you back.