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
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?
Which interceptor is responsible for setting action javabean properties?
What does jpa mean?
Why do we only use the main method to start a program?
What is cmp in java?
Do I need to install jre if I have jdk?
What is javabeans api?
What is the first argument of the string array in main method?
How do I install java on windows?
Differences between intermediate operations and terminal operations of java 8’s stream api?
What is @qualifier in java?
What is the purpose of jdk?
What is stateless class in java?
What is meant by framework in java?
What is factory pattern in java?