what is the Diff. between Access Specifiers and Access
Modifiers?

Answer Posted / dev

Access specifiers ::

The access specifier determines how accessible the field is
to code in other classes. Access ranges from totally
accessible to totally inaccessible. You can optionally
declare a field with an access specifier keyword: public,
private, or protected.


Access Modifiers ::

You can optionally declare a field with a modifier keyword:
final or volatile and/or static and/or transient.

Is This Answer Correct ?    362 Yes 94 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you write a good declaration?

508


Explain the importance of import keyword in java?

535


Can we override constructors?

551


Have you ever used hashtable and dictionary?

586


What is a class object?

508






What is the function of log?

554


why an outer class cannot be declared as private?

3628


What are the different http methods?

545


Explain java code for recursive solution's base case?

579


What does exp mean in math?

545


Difference between arraylist and vector.

598


Explain method local inner classes ?

601


When should I use singleton?

533


What is the size of int?

611


Are strings immutable in java?

532