What will be the output of following program?
interface A {
void print1();
void print2();
}
interface B extends A {
void print3();
}
class Example implements B {
public void print3() {
System.out.println("print3");
}
public void print1() {
System.out.println("print1");
}
public void print2() {
System.out.println("print2");
}
}
public class Extend {
public static void main(String args[]) {
Example e = new Example();
e.print1();
e.print2();
e.print3();
}
}