File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access specifiers & Access Modifiers

 
Manoj Mani
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Raghav Aggarwala
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sharan vasandani
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think

access modifiers means public,protectd etc

and

no-access modifiers means static final etc
 
Raghav Aggarwala
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
per my understanding
 
Manoj Mani
Ranch Hand
Posts: 65
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Raghav...........So there is nothing like access specifiers in Java?
 
sharan vasandani
Ranch Hand
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
access specifier =access modifier=visibility modifiers
 
Raghav Aggarwala
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 100
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic