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

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

Yunish
Views: 589 | Community Opinion: 1

Tags..  Java Interview  Core Java

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Sotlim Said..

A private variable may only be accessed within the class in which it is declared.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: