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
Give few difference between constructor and method?
What is binary tree in java?
What is the use of predicate in java 8?
What is data member in java?
What are "class access modifiers" in Java?
How to calculate the length of a singly linked list in java?
What happens to a static var that is defined within a method of a class?
What is the properties class?
What is local class in java?
why an outer class cannot be declared as private?
Difference between ‘>>’ and ‘>>>’ operators in java?
What is runtime polymorphism or dynamic method dispatch?
What is the purpose of garbage collection in java? When is it used?
How do you escape in java?
What is qms certification?