What is the use of default method in interface?
The default method implementation was introduced by Java 8 so that the old interfaces can use the lambda expression without implementing the methods in the implementation class.
BY Best Interview Question ON 02 Feb 2020
Example
Syntax:-
public interface interview {
default void print() {
System.out.println("Welcome Bestinterviewquestion.com");
}
}