I have declared an interface
public interface A {
public void print();
}
another interface
public interface B extends A {
public void print();
}
Then class
public class C implements A,B {
@Override
public void print() {
System.out.println(B.i);
}
}
Kindly tell me why there is no compile time error when both the interfaces have methods with same name and how does compiler determine which interface's method is being implemented??
thanks in advance