Tuesday, March 10, 2009

If a variable is declared as private, where may the variable be

Question :If a variable is declared as private, where may the variable be
accessed? (CoreJava)
Answer :A private variable may only be accessed within the class in which it is
declared.

No comments:

Post a Comment