• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between Access Modifiers and Access Specifiers

 
palanivelrajan subramanian
Greenhorn
Posts: 11
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got a small doubt....
What is the difference between Access Specifiers and Access Modifiers in java...
Whether both or same or not......
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Language Specification (under 6.6 Access Control) calls them access modifiers. Some people might call them specifiers.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Confused me too. You can see the link below :
http://www.coderanch.com/t/377844/java/java/AccessModifiers-Access-Specifiers

hth
 
palanivelrajan subramanian
Greenhorn
Posts: 11
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 48940
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 48940
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic