Results 1 to 2 of 2

Thread: Public static final variables in interfaces

  1. #1
    Junior Member
    Join Date
    Nov 2005

    Public static final variables in interfaces

    Is it neccessary to use Static and final keywords to the variables in interfaces?

  2. #2
    Contributing Member
    Join Date
    Feb 2007

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.