what is the Diff. between Access Specifiers and Access
Modifiers?
Answer Posted / prema
Access Specifier: It controls the access of class members
and variables by other objects.
Types of access specifiers in Java:
public
private
protected
friendly or package or default
Access Modifiers: Modifiers determine or define how the data
members and methods are used in other classes and objects.
Modifiers in Java:
static
final
abstract
native
synchronized
The main difference between access specifiers and modifiers
is that access specifiers define the accessibility of the
data members in a class and modifiers determine how these
methods are used and modified by other classes
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What happens if main method is not static?
How do you escape a string?
What is the use of singleton class?
Describe string intern() methodology
How many bytes is a char in java?
List out five keywords related to exception handling ?
State two differences between C and Java.
What is the use of put method?
What are the differences between the constructors and methods?
How do you start a thread?
Why java is a platform independent? Explain
what is the significance of listiterator in java?
How can a gui component handle its own events in java programming?
What is the difference between exception and error in java?
List implementations of list interface?