-
Junior Member
Public static final variables in interfaces
Is it neccessary to use Static and final keywords to the variables in interfaces?
-
Contributing Member
Re: Public static final 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules