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 the difference between an array and an array list?

732


What is number data type in java?

782


Explain the concept of hashtables?

831


What is a method in coding?

800


What is predicate in java?

811


How can we achieve thread safety in java?

906


Can we print null in java?

778


Is java code slower than native code?

771


What is the difference between scrollbar and scrollpane?

825


What is singletonlist in java?

714


How to call one constructor from the other constructor ?

815


What is the purpose of finalization in java programming?

797


What is the meaning of 3 dots in java?

886


What is natural ordering in java?

731


What is the history of java?

752