This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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: 9055
    
  12
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