Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static final variables
- 1. Interface variables are static because Java interfaces cannot be instantiated in their own right; the value of the variable must be assigned in a static context in which no instance exists.
- 2. The final modifier ensures the value assigned to the interface variable is a true constant that cannot be re-assigned by program code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement