Access Modifiers and Specifiers

Discussion in 'Java' started by prashantSum, Oct 26, 2005.

  1. prashantSum

    prashantSum New Member

    Joined:
    Oct 24, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    0
    What are Access Modifiers and
    What are Access Specifiers
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    There is no difference between Access Modifiers and Access Specifiers. Its just different names for the same Stuff.

     
  3. prashantSum

    prashantSum New Member

    Joined:
    Oct 24, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    0
    then some people say
    Access Modifiers are
    transient
    static...etc

    what are those
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    Transients and statics are different and there is nothing relating to the difference between Access Modifiers and Specifiers.

    Transient
    Temporary; transitory; not lasting or enduring. or Varying in time, as opposed to steady state.

    Static
    For class variables, the variable is shared by all objects of the class and retains its value within the entire program.
    For internal variables, the variable has block scope and retains its value between function calls.

    Thanks
    Shabbir Bhimani
     
  5. prashantSum

    prashantSum New Member

    Joined:
    Oct 24, 2005
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    0
    thanks for the reply
     
  6. aniruddha

    aniruddha New Member

    Joined:
    May 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    hi
    expalian transient in java with example
    :confused:
     
  7. aniruddha

    aniruddha New Member

    Joined:
    May 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    can we change access modifiers in case of over loading and overriding :confused:
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    Yup.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice