DEV Community

mahesh B Kirdak
mahesh B Kirdak

Posted on • Updated on

Java 8 : Why static Method introduced in interface .

Before java 8 whenever want to write any common functions that will be used in multiple places in application then in most cases, create the utility class and write the common code in this utility classes. But from java 8 can write this common code in interface with help of static methods.
Due to that no need to write common code in utility classes and interface can be use for utility functionality with the help of static methods.

Top comments (0)