JLS 2.13.1接口修饰符
An interface cannot be final,because the implementation of such a class could never be completed.@H_301_4@
如果我可以在接口I中编写创建静态内部类,可以在其中提供实现,那么为什么会有这样的限制@H_301_4@
interface Type { // Normal class Value { private Value() { } public void print() { System.out.println("Test"); } } public final Value value = new Value(); }