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
What is a stream in java?
What is javax annotation generated?
What is phantom memory?
In java what is the difference between sleep() and wait() .
How do I run a project in eclipse?
What is java web application?
How do you count in java?
Can the main method be overloaded?
Is jdk required for netbeans?
Is jdk an ide?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
When do we go for java 8 stream api? Why do we need to use java 8 stream api in our projects?
Can we install jre without jdk?
What is factory pattern in java?
What is the difference between lambdas and delegates?