what are different access modifiers core java interview questions and answers

1,168 views · Published 15 September 2012 · 2:42 · Indexed 22 September 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    Core Java Interview Questions and Answers :

What are different types of access modifiers ?

public: Any thing declared as public can be accessed from anywhere. 

private: Any thing declared as private can't be seen outside of its class. 

protected: Any thing declared as protected can be accessed by classes in the same package and subclasses in the other packages. default modifier : Can be accessed only to classes in the same package.

Class : public  or no modifier

More from this channel