what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / paul williams
Access Specifier is like a super class of Access Modifier
and Non-Access Modifier, which specifies the accessibility
of a field.
Access Modifier is like a sub class of Access Specifier,
there are actually 3 kinds in it namely,
1. Public
2. Protected
3. Private
Access Control in java is a little tricky as there are four
access control.
1. Public
2. Protected
3. Default
4. Private
| Is This Answer Correct ? | 22 Yes | 166 No |
Post New Answer View All Answers
What is boolean law?
Is there any sort function in java?
What are the library functions in java?
What is use of set in java?
What the difference is between execute, execute Query, execute Update?
What is enhanced loop in java?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
Differentiate between a constructor and a method? Can we mark constructors final?
Why is java multithreaded?
Explain wait() method of object class ?
what is the difference between preemptive scheduling and time slicing? : Java thread
What is the best way to findout the time/memory consuming process?
What's the base class in java from which all classes are derived?
What is array list in java?
Is an empty arraylist null?