Saturday, 27 July 2013

Access modifers in java

 Java's access specifiers are  : -
1. Public,
2. Private,
3.Default, and
4.Protected.
 Java also defines a default access level. protected applies only when inheritance is involved. The other access specifiers public  and private is described from below diagram.

0 comments:

Post a Comment