What does this program print?

from Records
Java 25 LTS beginner 2 min

What does this program print?

Java
public class Main {
    record Price(String sku, int cents) {}

    public static void main(String[] args) {
        var first = new Price("P-7", 250);
        var second = new Price("P-7", 250);
        System.out.println(first == second);
        System.out.println(first.equals(second));
        System.out.println(first.sku());
    }
}
Open in playground
Report an error