Author: Shivam Rajput

[JAVA] Default And Static Method

Reading Time: 3 minutes Overview In this article, We will learn default method and static method in an interface in java 8 new features. Before Java 1.7 we can declare only abstract methods in an Interface. However from Java 1.8 onwards we can write concrete methods also in an Interface. In Interface concrete methods should be either “default” or “static” only. What is Default Method ? The Default Method Continue Reading