Each field inside the interface is implicitly open, static, and final. In this case, WebConstants declares an internal interface (open, static and final) Framework and (public, static and final) Look , which also have some (public, static and final) string fields.
This is a (not very general) way of ordering constants in your code, with this structure you can enter:
String action = WebConstants.Framework.ACTION; String list = WebConstants.Look.LIST_CONT;
The advantage of this is that since WebConstants is an interface, you cannot accidentally initiate it
source share