Sheetal interview question

what is interface in java

Interview Answer

Anonymous

18 July 2024

An interface in Java is a blueprint of a class. It has static constants and abstract methods. The interface in Java is a mechanism to achieve abstraction.