MindIQ Academy
1 / 100
OCJP 21 (1Z0-830) - Interfaces, Records, and Sealed Classes - 100 MCQs

Question 1

What is the result?

interface Printable {
    void print();
}
class Report implements Printable {
    public void print() {
        System.out.println("Report");
    }
    public static void main(String[] args) {
        Printable p = new Report();
        p.print();
    }
}