Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

default scope

 
sam mitwa
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is difference between default scope and protected scope
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Protected access scope gives access to the same package and subtypes.
Default access scope only provides access to the same package.
 
Nikhilesh Fonseca
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
protected scope is larger than default scope
so always remeber that ..its a standard mock question
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic