Daffodil Software interview question

What is Interface in Java

Interview Answer

Anonymous

5 Oct 2024

In Java, an interface is a reference type, similar to a class, that is used to define abstract methods, which are methods without implementations. An interface represents a contract or a blueprint for a class that implements it. A class that implements an interface must provide concrete implementations for all of the methods declared in the interface, unless the class itself is abstract.