What does this program print?

from Reflection
Java 25 LTS beginner 2 min

What does this program print?

Java
interface Tagged {
    default String tag() { return "stock"; }
}

class Product implements Tagged {
    private int tax() { return 2; }
}

public class Main {
    public static void main(String[] args) throws Exception {
        var method = Product.class.getMethod("tag");
        System.out.println(method.getDeclaringClass().getSimpleName());
    }
}
Open in playground
Report an error