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());
}
}