| Author |
Difference between Access Modifiers and Access Specifiers
|
palanivelrajan subramanian
Greenhorn
Joined: Oct 01, 2009
Posts: 11
|
|
I got a small doubt....
What is the difference between Access Specifiers and Access Modifiers in java...
Whether both or same or not......
|
With Regards,
S.Palanivelrajan, Software Engineer
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
|
The Java Language Specification (under 6.6 Access Control) calls them access modifiers. Some people might call them specifiers.
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
Rahul Sudip Bose
Ranch Hand
Joined: Jan 21, 2011
Posts: 637
|
|
Confused me too. You can see the link below :
http://www.coderanch.com/t/377844/java/java/AccessModifiers-Access-Specifiers
hth
|
SCJP 6. Learning more now.
|
 |
palanivelrajan subramanian
Greenhorn
Joined: Oct 01, 2009
Posts: 11
|
|
Me too thought that both access specifiers and access modifiers are same...but some of my friends told that they are different... please clarify my doubt...
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32634
|
|
Please read the link Rahul Sudip Bose quoted again, and you see Mike Simmons points out there is a serious mistake in the last post.
There is no difference, but the correct term is "modifier". Look through the Java™ Language Specification and do ctrl-F "modifier" and you find about 8 hits; ctrl-F "specifier" finds nothing.
|
 |
palanivelrajan subramanian
Greenhorn
Joined: Oct 01, 2009
Posts: 11
|
|
Thank you Ritchee.....
Here after we have to use the term Access modifier only....
So that we can avoid the confusio...
thank you all....
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32634
|
|
You're welcome
|
 |
 |
|
|
subject: Difference between Access Modifiers and Access Specifiers
|
|
|