I am clear before Java 8 interfaces are fully abstract but in Java 8, I saw
public interface A{
public static void staticMethod() {
//implentation ...
}
public default void defaultMethod() {
//implementation ...
}
}
public interface B{
public static void staticMethod() {
//implentation ...
}
public default void defaultMethod() {
//implementation ...
}
}
public class C implements A,B{
public static void staticMethod() {
//implentation ...
}
public default void defaultMethod() {
//implementation ...
}
}
I learned that Java did not allow multiple inheritances because of the diamond problem, now the diamond problem comes in Java 8, we need to solve this by implementing both methods in class C.
I need to know after java 8 can we consider java support multiple inheritances or Not?
still in java classes cannot have multiple inheritances so if some one ask, is Java 8 support multiple inheritances, looking only above example can I say? yes or partially support?