Access Modifiers

Access Modifiers
  • public 
  • protected
  • default
  • private

Public - It can be accessed by whole programs
Private - It can be accessed by same class only
default - defauly member can be accessed only if the 
          class accessing the members belongs to the same package
protected - It can be accessed by same classand sub class.


Non access Member modifiers

  • transient
  • synchronzed
  • native
  • final
  • abstract
  • strictfp

No comments:

Post a Comment

Loading