Sunday, December 28, 2014

If a method is declared as protected, where may the method be accessed

Question:If a method is declared as protected, where may the method be accessed?

Answer: A protected method may only be accessed by classes or interfaces of the same package orby subclasses of the class in which it is declared.

Tags:Interview Questions, J2EE, Java,

Please submit your Interview Answer for the above Question via replying to this post. Thank you for visiting to our blog, Have a Good Day!.



Sponsor Advertisement



Real Estate Management Software

Real Estate Management System Software

Real Estate Management Software is an advanced end-to-end Real Estate Office Management System that enables Real Estate Agencies to manage more effectively, search prorty details, keep property owner data etc. Web-based tracking and accounting solution ideal for commercial, residential housing....

No comments:

Post a Comment