Answer Posted / janet
Public: Any thing declared as public can be accessed from
any where.
Private: Any thing declared as private can't be seen
outside of it's 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.
Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
What is a file pointer?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
Give a brief description of java socket programming?
How do we access static members in java?
What is the old name of java?
Explain implementation and how is it different from conversion?
Can we define private and protected modifiers for variables in interfaces?
What is module with example?
Define array. Tell me about 2-D array.
Name few java 8 annotations ?
How do you clear a method in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
Why is java multithreaded?
What are the restriction imposed on a static method or a static block of code?
Is hashset sorted in java?