1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Clarification for private access modifier

Discussion in 'Java' started by whateverme, Jan 25, 2011.

  1. whateverme

    whateverme New Member

    Joined:
    Dec 10, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    if let's say I have
    <code>private int x</code>

    what does x mean in the about context.

    does it mean:
    is write only
    cannot be used outside the object
    a class variable


    thank you.
     
  2. virxen

    virxen New Member

    Joined:
    Nov 24, 2009
    Messages:
    387
    Likes Received:
    90
    Trophy Points:
    0
    the correct answer is
     

Share This Page