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

What are disadvantages of java?

511


What are the four pillars of java?

603


Is arraylist zero based?

547


What are multiple inheritances?

574


What is command line argument

701






What is toarray method in java?

552


Can a class be declared as protected?

529


Why java is considered as platform independent?

584


What are the kinds of polymorphism?

606


is there a separate stack for each thread in java? : Java thread

531


What is heterogeneous in java?

485


If you do not want your class to be inherited by any other class. What would you do?

555


What is an object class?

551


Define how destructors are defined in java?

582


Which is bigger float or double java?

515