JEPs (Java Enhancement Proposals)
JEPs are proposals for new features and enhancements to the Java platform. They cover a wide range of topics and can introduce significant changes. You can explore the list of JEPs to discover additional new Java programming topics. Here's an example of a JEP related to records:
record Point(int x, int y) {}
Point p = new Point(10, 20);
System.out.println(p.x()); // 10
System.out.println(p.y()); // 20
No comments:
Post a Comment