Default Methods Java 8

This is the new features Java 8 introduced which allows developers to add new methods to the interfaces with method body without breaking the existing implementation of these interface. There are some examples provided here. In previous versions of Java  (i.e. 1.7 or 1.6 or 1.5 or lower versions)  Interfaces always  contained method declaration not […]