Back
An interface is a special type of abstract method which does not implement any methods.
It is used to achieve abstraction in java. There can be only abstract methods in the interface.
Its syntax is:
interface Interfacename{void abstractmethod();}
interface Interfacename{
void abstractmethod();
}
Want to learn Java? Check out the Java course from Intellipaat.
30.9k questions
32.9k answers
500 comments
665 users