Are you sure about that?The word abstract has vanished from the interface. Did you see that anywhere in the JLS?
Mansukhdeep Thind wrote: . . . . Also, interfaces are by default abstract. . . .
the compiler considers it as
It can be dubious design to put constants into interfaces, as you can see here. It is probably better to put those constants into an uninstantiable class.And to answer the original question: you always miss out modifiers in interfaces, so you simply writeIn fact, when you are writing interfaces, the biggest and mostest parts of the interface are the documentation comments
One more interesting thing Ritchie. Earlier(as in way back when Oak was introduced), interface methods were declared as follows:
Later on the "=0" was replaced by ().
Every interface is implicitly abstract.
This modifier is obsolete and should not be used in new programs.
Additionally, for the original question, from JLS7 9.3:
Every field declaration in the body of an interface is implicitly public, static, and final. It is permitted to redundantly specify any or all of these modifiers for such fields.