I am wondering under what circumstances do we extend an interface from an interface? Because, for example
interface A{
public void method1();
}
interface B extends A{
public void method2();
}
class C implements B{
@Override public void method1(){}
@Override public void method2(){}
}
Isn't it equivalent to
interface A{
public void method1();
}
interface B{
public void method2();
}
class C implements A, B{
@Override public void method1(){}
@Override public void method2(){}
}
Are there any significant reasons behind ?