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 meant by abstract class?
What is lambda expression in java?
What is are packages?
What is incompatible types in java?
Can we create a class inside a class in java?
What is anonymous inner class?
What is double data type?
Is Constructor possible in abstract class in java ?
What is keyword in oop?
What is the difference between the size and capacity of a vector?
What is early binding and late binding in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What does t in java mean?
What programs use java?
Why does abstract class have constructor?