what is interface?
In java multiple inheritance concept is not supported so in order to achieve that we use interface.interface is a blueprint of class it contain fileds and all methods inside interface are abstract by nature they have method signature and no body.interface are used for acheiving abstraction.interface are created using keyword interface followed by name of interface we can use this interface in class by using keyword implement
Advantage of using interface
1.They are loosely coupled which mean change of class A doesnt affect class B and vice versa.
2.We can achieve multiple inheritance through interface we can implement multiple interface to class.
3.interface can extend other interface or more.