Sheetal interview question

what is interface in java

Interview Answer

Anonymous

Jul 18, 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.