1.

What is Interface in Java? Explain

Answer»

Similar to CLASS, an interface in Java is a reference type. An interface contains ABSTRACT methods, CONSTANTS, STATIC methods, default methods and nested types.

A class implements an interface and INHERITS the abstract methods of the same interface. Writing an interface is like writing a class.



Discussion

No Comment Found