Multiple Inheritance in Java is nothing but one class extending more than one class. Previous versions of Java(until JDk 7) doesn't support Multiple Inheritance because it causes a famous problem called "Diamond Problem" and hence indirectly Multiple Inheritance in Java is achieved using Interfaces. After the introduction of Default Methods in Java 8, even the interfaces can … [Read more...]
Java 8 Default Methods in Interface
Java Interface always can contain the method declaration and cannot contain method implementation (method body), "there is no possible way of adding method implementation to a Java Interface" has become a myth now after the introduction of Default Method in Java 8. Default Method or Defender methods is a new feature which lets the developer add a new method to an existing … [Read more...]