Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Java Programming/Keywords/private

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

is a Java keyword which declares a member's access as private. That is, the member is only visible within the class, not from any other class (including subclasses). The visibility of members extends to nested classes. Please note: Because access modifiers are not handled at instance level but at class level, private members of an object are visible from other instances of the same class! Syntax: method(); See also: Java Programming/Access Modifiers deep