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
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
-
1:04
Top Core Java Interview Question and Answer 9
-
1:41
What happens if a java thread throws nullpointer exception interview
-
2:36
how many objects are created in java string str = new Stringabc java interview
-
1:55
What is multithreading wait notify java interview question interviewdot
-
4:04
Java Interview Question and Answer Does Java Supports Multiple Inheritance
-
1:43
Java Interview Question And Answer Eight Primitive Types in Java What Java Interview
-
3:37
Java Interview Question And Answer Different Thread States True or False Interview Question
-
2:13
Java Interview Question And Answer What would you use to compare == And equals Java Interview Quest