This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes access specifiers and modifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "access specifiers and modifiers" Watch "access specifiers and modifiers" New topic
Author

access specifiers and modifiers

sano vasu
Greenhorn

Joined: Mar 26, 2005
Posts: 8
Hello friends


what is the difference between access specifiers and access modifiers
as both are prefixed to a variable or a method.
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
The two terms mean the same and can be used interchangably. The four types of access available in java for variables and methods are: Private, Default, Protected and Public. Read more about them here
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1821

vasu:

I note that you have recently changed your display name. However, your new name still does not comply with the JavaRanch Naming Policy. Please Change your display name to comply. (We are looking for a first and last name; preferably your own, but one that is at least not obviously fictitious.)

Thanks!


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
 
jQuery in Action, 2nd edition
 
subject: access specifiers and modifiers