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 is the difference between an array and an array list?
What is number data type in java?
Explain the concept of hashtables?
What is a method in coding?
What is predicate in java?
How can we achieve thread safety in java?
Can we print null in java?
Is java code slower than native code?
What is the difference between scrollbar and scrollpane?
What is singletonlist in java?
How to call one constructor from the other constructor ?
What is the purpose of finalization in java programming?
What is the meaning of 3 dots in java?
What is natural ordering in java?
What is the history of java?