File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Access specifiers & Access Modifiers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Access specifiers & Access Modifiers" Watch "Access specifiers & Access Modifiers" New topic
Author

Access specifiers & Access Modifiers

Manoj Mani
Ranch Hand

Joined: Mar 31, 2007
Posts: 65
In some book its given Access Specifiers as private,protected,public, while others its given as static,final,etc etc.....

More logically, i think Access Specifiers are public private protected.....

and access Modifiers as static,final etc etc.....


Am i right?


Impossible Is Often Untried.Its Time For Us To Change....
Raghav Aggarwala
Greenhorn

Joined: Jul 21, 2005
Posts: 26
Originally posted by Manoj Mani:
In some book its given Access Specifiers as private,protected,public, while others its given as static,final,etc etc.....

More logically, i think Access Specifiers are public private protected.....

and access Modifiers as static,final etc etc.....


Am i right?



Manoj:

public, private, protected, static, final, volatile, transient, native, syncronized and abstract are all modifiers..

out of these, public, private, protected and default (no modifier) are visibility modifiers


-----------------<br />SCJP 1.4<br />Target SCWCD by December 2007
sharan vasandani
Ranch Hand

Joined: Feb 22, 2007
Posts: 100
i think

access modifiers means public,protectd etc

and

no-access modifiers means static final etc
Raghav Aggarwala
Greenhorn

Joined: Jul 21, 2005
Posts: 26
per my understanding
Manoj Mani
Ranch Hand

Joined: Mar 31, 2007
Posts: 65
Hey Raghav...........So there is nothing like access specifiers in Java?
sharan vasandani
Ranch Hand

Joined: Feb 22, 2007
Posts: 100
access specifier =access modifier=visibility modifiers
Raghav Aggarwala
Greenhorn

Joined: Jul 21, 2005
Posts: 26
Manoj,

I agree with you that some books do mention access modifiers as static, final, public, native etc...

access == visibility ???
I don't know because native, syncrhonized are access modifiers but i don't think they will fall under word visibility.

but the visibility modifiers are public , private, protected and default(no modifier).


Anyone who knows more about modifier, kindly advise.

Raghav
Raghav Aggarwala
Greenhorn

Joined: Jul 21, 2005
Posts: 26
Originally posted by Raghav Aggarwala:
Manoj,

I agree with you that some books do mention access modifiers as static, final, public, native etc...

access == visibility ???
I don't know because native, syncrhonized are access modifiers but i don't think they will fall under word visibility.

but the visibility modifiers are public , private, protected and default(no modifier).


Anyone who knows more about modifier, kindly advise.

Raghav



I am sorry about the confusion.

Access modifiers = visibility modifier keywords are public, private, protected and default(no modifier).

Others keywords native, synchronized, static, final, abstract, transient, volatile are modifier keywords.

Source: Exam Cram 2 - Bill Brogden, Marcus Green book
It's not clear in the book also, but at no place, they have addressed modifiers other than public, private, protected and default ( no modifiers) as access modifiers.
sharan vasandani
Ranch Hand

Joined: Feb 22, 2007
Posts: 100
final,abstract,strictfp are NONACCESS class Modifiers,

final,abstract,synchronized,transient,native,stricfp are NONACCESS Member modifiers.


this from SCJP 5 study guide by bates & kathy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access specifiers & Access Modifiers