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 the access scope of protected access specifier?
Which is bigger double or float?
How to provide security in java
What is the difference between array list and vector in java?
What is the difference between private & public & friendly classes?
Can we define static methods inside interface?
What is javac_g?
Can a static method be final?
What are parsers? Dom vs sax parser.
In a program, initializing an array of 100 KB is throwing an out of memory exception while there is 100 MB of memory available. Why?
What methodology can be employed to locate substrings inside a string?
Explain spliterator in java8?
What is gc()?
What is an infinite loop? How infinite loop is declared?
What is a text string?