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 meant by object?
What ide should I use for java?
Difference between final and effectively final ? Why is effectively final even required ?
What is meant by design patterns?
How to stop a thread in java? Explain about sleep () method in a thread?
Which is illegal identifier in java?
What is fundamental datatype?
Can a class have 2 constructors?
What is jit compiler ?
What is the difference between numeric and integer?
Can we declare a class as abstract without having any abstract method?
What is the use of volatile in java?
What is memory leak and how does java handle it?
Which types of exceptions are caught at compile time?
How we can run a jar file through command prompt in java?