aspose file tools*
The moose likes Beginning Java and the fly likes Protected Access Modifier Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Protected Access Modifier" Watch "Protected Access Modifier" New topic
Author

Protected Access Modifier

Thomas Markl
Ranch Hand

Joined: Mar 08, 2001
Posts: 192
"In java a protected variable is more accessible than a default variable (variable with no access modifier).
I think this is true because a protected variable is visible in the package and in subclasses of the class outside the package while default only means package access.
What do you think?
Thomas
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
I agree.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Protected Access Modifier