Skip to main content
8 of 16
Rollback to Revision 6 - Edit approval overridden by post owner or moderator
Abdull
  • 28.2k
  • 27
  • 137
  • 185
 | highest precedence <---------> lowest precedence *———————————————+————————————————+———————————+———————————————+——————— \ xCanBeSeenBy | this | any class | this subclass | any \__________ | class | in same | in another | class \ | nonsubbed | package | package | Modifier of x \ | | | | ————————————————*————————————————+———————————+———————————————+——————— public | ✔ | ✔ | ✔ | ✔ ————————————————+————————————————+———————————+———————————————+——————— protected | ✔ | ✔ | ✔ | ✘ ————————————————+————————————————+———————————+———————————————+——————— package-private | | | | (no modifier) | ✔ | ✔ | ✘ | ✘ ————————————————+————————————————+———————————+———————————————+——————— private | ✔ | ✘ | ✘ | ✘ 
Abdull
  • 28.2k
  • 27
  • 137
  • 185