[size=large]• private— The member is accessible only inside the top-level class where it is
declared.
• package-private— The member is accessible from any class in the package where it
is declared. Technically known as default access, this is the access level you get if no
access modifier is specified.
• protected— The member is accessible from subclasses of the class where it is
declared (subject to a few restrictions [JLS, 6.6.2]) and from any class in the package
where it is declared.
• public— The member is accessible from anywhere.[/size]
declared.
• package-private— The member is accessible from any class in the package where it
is declared. Technically known as default access, this is the access level you get if no
access modifier is specified.
• protected— The member is accessible from subclasses of the class where it is
declared (subject to a few restrictions [JLS, 6.6.2]) and from any class in the package
where it is declared.
• public— The member is accessible from anywhere.[/size]