JavaPins - Stories tagged with Access Modifiers

Access Modifiers and Specifiers in Java ~ Java Stuff

published 783 days, 7 hours, 24 minutes ago posted by javastuffjavastuff 787 days, 7 hours, 33 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:
tags: Access Modifiers, Access Specifiers, core java