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

Java Programming Language >   Variables in java >   About Java Tutorial  

Short Question

991


Answer:

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


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.