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


Please Help Members By Posting Answers For Below Questions

what is meant by abstract class?

644


What is lambda expression in java?

533


What is are packages?

577


What is incompatible types in java?

530


Can we create a class inside a class in java?

540






What is anonymous inner class?

607


What is double data type?

535


Is Constructor possible in abstract class in java ?

579


What is keyword in oop?

510


What is the difference between the size and capacity of a vector?

560


What is early binding and late binding in java?

589


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 ?

621


What does t in java mean?

530


What programs use java?

464


Why does abstract class have constructor?

544