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?
Tags..
Java Interview
Core Java
Posted by:
Yunish
| Views: 72 | Community Opinion:
1
Add Your Opinion
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
Your Name:
*your opinion/answer:
Related Questions & Answers:
How does Java handle integer overflows and underflows?
Which Container method is used to cause a container to be laid out and redisplayed?
What is the difference between a static and a non-static inner class?
Difference between the Reader/Writer class hierarchy and InputStream/OutputStream class hierarchy
How is it possible for two String objects with identical values?
What is your platform's default character encoding?