what is the Diff. between Access Specifiers and Access
Modifiers?
Answers were Sorted based on User's Feedback
Answer / 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 ? | 363 Yes | 94 No |
Answer / pandian.r
Access Specifier are used to specifiy how the member
variable ,methods or class to other classes.They are
public ,private and protected.
Access Modifier:
1.Access
2.Non Access
Access:
public ,private,protected and default.
Non Access:
abstract,final,native,static,synchronized,transient,volatile
and strictfp
| Is This Answer Correct ? | 161 Yes | 68 No |
Answer / emilie jose
Access Specifiers
They are used to set the visibility of a
class or variable or a method. Classes can be Public or
Default.Variables and methods can be
public,private,protected or default
Access Modifiers
They are used to optionally declare a
field.That is we can set access modifiers for class,method
or variables. Classes can have modifier like Abstract.
Methods can have abstract, native,synchronised etc..
| Is This Answer Correct ? | 91 Yes | 47 No |
Answer / swetha
Access Specifiers :
public,private,protected and default.
Access Modifiers :
abstract,native,transient,final,static,volatile and
strictfp.
| Is This Answer Correct ? | 85 Yes | 46 No |
Answer / gautham
Access Specifiers  A.S gives access privileges to outside
of application (or) others; they are Public, Protected,
Private, Defaults
Access Modifiers  A.M which gives additional meaning to
data, methods and classes, final cannot be modified at any
point of time
| Is This Answer Correct ? | 52 Yes | 25 No |
Answer / murali m
Access Specifiers
They are used to set the visibility of a
class or variable or a method.
ex:public,private,protected and default.
Access Modifiers
They are used to optionally declare a
field.
ex:abstract,native,transient,final,static and volatile.
| Is This Answer Correct ? | 58 Yes | 35 No |
Answer / sreenivasarao
access specifier : it will define scope
access modifier : it will define behaviour
| Is This Answer Correct ? | 28 Yes | 14 No |
Answer / ejp
Answer #13 is still the only correct answer here. The term
'access specifier' does not appear in the Java Language
Specification. And why would something called an 'access
specifier' be concerned with native/abstract/final anyway?
This is all just nonsense.
| Is This Answer Correct ? | 14 Yes | 6 No |
Answer / ejp
There is no such thing as an 'access specifier' in Java so
there is nothing for 'access modifier' to be different from.
There are 'type specifiers' and 'access modifiers'. See the
Java Language Specification.
| Is This Answer Correct ? | 23 Yes | 17 No |
Answer / ankit rawat
Access Specifier-
Public
Private
protected
default
Access Modifier-
static
constant
abstract
final
| Is This Answer Correct ? | 8 Yes | 3 No |
What is a JAR file?
What is lifetime variable?
What is the life cycle of Thread ?
12 Answers HCL, Varnar Softech,
How garbage collection is done in java?
Is java developer a good career?
explain the concept of virtual method invocation in polymorphism in detail?
Write a program to show whether a graph is a tree or not using adjacency matrix.
How can a gui component handle its own events?
Can you have a constructor in abstract class?
What is the access scope of protected access specifier?
What is string made of?
What does yield method of the thread class do?