Search:

Type: Posts; User: helloworld922

Search: Search took 0.13 seconds.

  1. Replies
    10
    Views
    1,236

    Re: modifiers for variable

    Having no modifier is not the same as a public modifier, you can only access the field from within the same class or package. Public allows access from anywhere.

    See: Controlling Access to Members...
  2. Replies
    10
    Views
    1,236

    Re: modifiers for variable

    Accessibility modifiers don't change accessibility inside a class, they're used to limit accessibility outside of the class.

    For example, a private field can only be accessed within that class,...
Results 1 to 2 of 2