Computer Science, asked by rockdart8910, 1 year ago

What modifiers may be used with an interface declaration?

Answers

Answered by raina24
0
An interface in the Java programming language is an abstract type that is used to specify a behavior that classes must implement. They are similar to protocols. Interfaces are declared using the interface keyword, and may only contain method signature and constant declarations (variable declarations that are declared to be both static and final). All methods of an Interface do not contain implementation (method bodies) as of all versions below Java 8. Starting with Java 8, default and static methods may have implementation in the interfacedefinition.
Similar questions