Is it neccessary to use Static and final keywords to the variables in interfaces?
Printable View
Is it neccessary to use Static and final keywords to the variables in interfaces?
All variables defined in an interface are implicitly public, static, and final—
in other words, interfaces can declare only constants, not instance variables.
So,even if you use static and final keywords or not,they are,by default.
Thanks
Neelima