易百教程

100、可以将接口声明为 final 吗?

不能。不能将接口声明为 final,因为该接口必须由某个类实现才能提供其定义。因此,使接口最终化是没有意义的。 但是,如果您尝试这样做,编译器将显示错误。