• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Access Specifier vs Access modifier

 
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Whats the difference between access specifier and access modifier...

I have also heard about type modifiers.

Can anone shed some light on this?

Tx in advance
Regards
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My impression (could be wrong) is that these are all the same thing. See JLS 8.5 and 8.5.1, which address type declarations and type modifiers.
 
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess access modifiers (8.5.1), or class modifiers (JLS 8.1.1) or field modifiers (8.3.1) are just terms used to refer to a subset of the whole set of Java modifiers.

Hence I share Marc's assessment that they are all part of the same thing.

I could not find the term specifier in the JLS, at least not in paragraph referring to a modifier as if they were interchangeable terms.
[ April 15, 2006: Message edited by: Edwin Dalorzo ]
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you...

reply
    Bookmark Topic Watch Topic
  • New Topic