Question #90277

A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?


Options:

Answer: A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction Do not declare the method with any accessibility modifiers..

Test Your Knowledge

Want to practice more questions like this? Take a quiz in this category!

Take a Quiz

Share This Question