what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / dev
Access specifiers ::
The access specifier determines how accessible the field is
to code in other classes. Access ranges from totally
accessible to totally inaccessible. You can optionally
declare a field with an access specifier keyword: public,
private, or protected.
Access Modifiers ::
You can optionally declare a field with a modifier keyword:
final or volatile and/or static and/or transient.
| Is This Answer Correct ? | 363 Yes | 94 No |
Post New Answer View All Answers
What is the difference between class forname and new?
What is a string token?
What is object class in java?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?
Can we have two methods in a class with the same name?
What is singleton math?
Explain wrapper classes in java?
What does exclamation mean in java?
what is the difference between thread and runnable types? : Java thread
What are the different tags provided in jstl?
Why packages are used?
What are adapter classes?
What class of exceptions are generated by the java run-time system?
What is string made of?
How does a cookie work in Servlets?