1public interface MyInterface {
2
3 // regular interface methods
4
5 default void defaultMethod() {
6 // default method implementation
7 }
8}
1Default constructor is a constructor created by compiler; if user does not
2create a constructor in a class.
3If user defines a constructor in a class then java compiler will not create
4default constructor.