I am a bit confused with the following code
******************************************
interface I1{
public int methodA(int a);
}
abstract class example implements I1{
//public int methodA(int a){
//return a;
//}
public static int methodC(){
return 1;
}
public static void main(
String[] args){
System.out.println(methodC());
}
abstract void methodB(int a);
}
*****************************************
I thought the code should not compile as the abstract class is not implementing the interface method. But the code compiles and the output is 1.
Any explanation!!!