why i can not access private variable in other class?
Answer Posted / naresh
private variable are visible within it class only. the are
not visible to other class within that package or other. so
we cannot access.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Explain the common use of ejb?
Explain issues of old java date api?
Is php faster than java?
What is http session in java?
Explain main thread under thread class execution?
differences between iterator and spliterator in java se 8?
What is meant by pass by reference and pass by value in java?
What is static class in java?
What is type inference? Is type inference available in older versions like java 7 and before 7 or it is available only in java se 8?
What is jpa entitymanager?
How can I swap two variables without using a third variable?
What is the difference between swing and awt components?
Do I really have to type in the programs in the book to try them out?
What is java ioc?
What is resultsetmetadata in java?