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
Which collection is thread safe in java?
Explain tree set and its features?
How do you compare two objects?
How is string immutable in java?
What is a double vs float?
How is hashcode calculated in java?
Define how does a try statement determine which catch clause should be used to handle an exception?
Write a program to print all permutations of string?
How can you generate random numbers in java?
What do you mean by singleton class in java?
Why is stringbuffer faster than string?
How do you convert an int to a double in java?
Where is singleton pattern used?
Difference between nested and inner classes ?
Is it possible for yielded thread to get chance for its execution again ?