Basic and Advance Java Question:
Download Questions PDF

If a method is declared as protected, where may the method be accessed in Java Programming?

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 Interview Questions And Answers PDF

Previous QuestionNext Question
What modifiers may be used with an inner class that is a member of an outer class in Java Programming?What is an Iterator interface in Java Programming?