answered
In the Java programming language, an interface is similar to a class, that can contain only constants, method signatures, and nested types. There are no method bodies.There are no objects.Interfaces cannot be instantiated. They can only be implemented by classes or extended by other interfaces.