Question from the Java test

Print a record in Java 17

Expert

In Java 17 what is the result of running this block of code

record Point(int x, int y) { }
Point p = new Point(1, 1);
System.out.prinln(p);
Author: LoïcStatus: PublishedQuestion passed 250 times
Edit
2
Community EvaluationsNo one has reviewed this question yet, be the first!