java interview question and answer can a class can be declared as protected

596 views · Published 22 September 2012 · 2:30 · Indexed 8 November 2026

Channel: Interview DOT · 2012 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. http://www.interviewdot.com

Welcome to www.InterviewDot.com     How to prepare for Java interview Questions :    

Top 20 Java Interview Questions and Answers :

Can a class be declared as protected ?

A class can't be declared as protected. only methods can be declared as protected.

What is the access scope of a protected method?

A protected method can be accessed by the classes within the same package or by the subclasses of the class in any package.





For more Java Interview questions and answers  - logon to www.InterviewDot.com - India's Top Interview Guide.

More from this channel