Which modifier is used to specify that a method Cannot be used outside a class?

Any variable, method, or class declared to use the default access modifier cannot be accessed by any other class outside of the package from which it was declared.

Leave a Reply

Your email address will not be published. Required fields are marked *