|
||
|
Inner classes
Inner interfaces
The release of JDK 1.1 also introduced inner interfaces, which are interfaces that are defined inside other classes or interfaces.
However, unlike inner classes, inner interfaces are seldom used. Since interfaces are not associated with
an object instance, they are always static. Likewise, any class that is declared within an interface is also static.
Every field inside an interface is implicitly public, static, and final.
In this case WebConstants declares an inner interface (public, static, and final) Framework and (public, static, and final) Look which have also some (public, static, and final) String fields. This is a (not very common) way to order constants in your code, with this structure you could type: String action = WebConstants.Framework.ACTION; String list = WebConstants.Look.LIST_CONT; |
||
|
|
||
