why interface in java

Why Java interface required A full discussion with Example?

For better knowledge of Java interface, the explanation is given in Questions/Answers form, an easy way to understand fast. 1. What is an interface in Java? a) An interface contains only abstract methods (not even one concrete method). b) It differs from abstract class in that abstract class can contain…