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

Why lambda expression is used in java?

568


What is the difference between choice and list?

592


What is command line used for?

588


How do you do descending order in java?

521


What is join () in java?

529






How to sort numbers in java without array?

530


What is function overriding and overloading in java?

581


Is 64bit faster than 32 bit?

577


What is the same as procedures?

530


Why pass by reference is not possible in java?

495


What is the difference between == and === javascript?

574


What is user defined exception in Java?

612


Can a class extend 2 classes in java?

555


What are static blocks and static initalizers in java ?

583


How do you declare a string variable?

513