This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Difference between Access Modifiers and Access Specifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Difference between Access Modifiers and Access Specifiers" Watch "Difference between Access Modifiers and Access Specifiers" New topic
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: 38472
    
  23
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: 38472
    
  23
You're welcome
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between Access Modifiers and Access Specifiers