Java Interview Questions - What is a protected method?

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

0 comments:

Post a Comment

 
Copyright © Interview Questions and answers - Blogger Theme by BloggerThemes & freecsstemplates - Sponsored by Internet Entrepreneur