Can an interface be declared final?
It is not permitted to declare an interface as final, it will cause a compilation error. It does not make sense to declare an interface final because it contains no implementation code and cannot instantiated in its own right. The final modifier is used to prevent the extension of concrete classes. Actions: Follow-up, clarify or correct this answer. Submit a new question.
It is not permitted to declare an interface as final, it will cause a compilation error. This is a Java language design decision. Interface types are intended to be implemented and can be extended without restriction. Some regard this free extensibility as a flaw in the language design because there are cases where it would be useful to restrict the broader use of an interface. In the current scheme it does not make sense to declare an interface final because it would imply it could not be extended and possibly not implemented, which would not be useful. Actions: Follow-up or correct this answer. Submit a new question.