jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "access specifiers and modifiers" Watch "access specifiers and modifiers" New topic

access specifiers and modifiers

sano vasu

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

Joined: Aug 20, 2001
Posts: 1824


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.)


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I agree. Here's the link: http://aspose.com/file-tools
subject: access specifiers and modifiers
It's not a secret anymore!