JavaPins - Stories tagged with Access Modifiers
1
Pins

Access Modifiers and Specifiers in Java ~ Java Stuff

published 780 days, 16 hours, 28 minutes ago posted by javastuffjavastuff 784 days, 16 hours, 36 minutes ago
Thursday, March 01, 2012 9:34:10 AM GMT Sunday, February 26, 2012 9:25:21 AM GMT
Access Modifiers :An access modifier is a Java keyword that indicates how a field or method can be accessed. Variables and methods in Java have access restrictions, described by the following access modifiers: private:  Used for most instance variablesprivate variables and methods are accessible only to methods of the class in which they are declaredDeclaring instance variables private is known as data hidingExample:  private int x;default (this means no modifier is used):Access is limited to the packag... (more)
category: JAVA | clicked: 9 | comment | | source: www.javastuff.in
tags: Access Modifiers, Access Specifiers, core java