• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

clear my ambiguity

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everyone,
Please explain me.
What is the difference between access specifiers and access modifiers.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The access specifiers are:
private, protected, public and default ("friendly" or "package")
The access modifiers are:
abstract and final
Declaration modifiers:
transient, volitile and synchronized
But I wouldn't get too hung up on the terminology - you don't need to know the difference for the exam.
 
Ranch Hand
Posts: 3141
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Rajaraman,
The access modifiers determine how objects may interact with each other ie a 'public' class is visible to all other classes and can be accessed by them but a private object can only interact with other objects of the same type.
The other modifiers further qualify object/method/variable , providing a clue to how it can be used ie an 'abstract' method isn't implemented so it can't be used until you provide code statements defining it's behaviour. A 'volatile' variable's value can change in unpredictable ways so it has to be handled differently in multi-threaded apps, etc.
Hope that helps.
Please read the JavaRanch Name Policy and re-register using a name that complies with the rules.
Thanks for your co-operation.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
[This message has been edited by Jane Griscti (edited July 10, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic