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

Answer Posted / indrabahadur singh

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 ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which collection is thread safe in java?

742


Explain tree set and its features?

811


How do you compare two objects?

715


How is string immutable in java?

787


What is a double vs float?

745


How is hashcode calculated in java?

726


Define how does a try statement determine which catch clause should be used to handle an exception?

813


Write a program to print all permutations of string?

906


How can you generate random numbers in java?

790


What do you mean by singleton class in java?

691


Why is stringbuffer faster than string?

697


How do you convert an int to a double in java?

805


Where is singleton pattern used?

750


Difference between nested and inner classes ?

810


Is it possible for yielded thread to get chance for its execution again ?

781