Java Developer Question: Download Questions PDF
Suppose if a method is declared as protected, where may the method be accessed in Java Programming?
![Java Developer Interview Answer Java Developer Interview Question](https://globalguideline.com/public/images/interview/14.png)
Answer:
A protected method may only be accessed by classes or interfaces of the same package or by subclasses of the class in which it is declared.
Download Java Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
What is Iterator interface in Java Programming? | Which modifiers may be used with an inner class that is a member of an outer class in Java Programming? |