DEVFYI - Developer Resource - FYI

What is a protected method?

Java Interview Questions and Answers (part 1)


(Continued from previous question...)

76. What is a protected method?

A protected method is a method that can be accessed by any method in its package and inherited by any subclass of its class.

(Continued on next question...)

Other Interview Questions