There are 2 classes . Class A and Class B. In Class A i declared
a variable in private. if we can access this private variable in
Class B. If yes means , how we can access ?
Answer Posted / anant
The variable declared in class a should be directed available
in inner class because.
Getter and setter is also another way.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is java servlet container?
Is java a tool?
Why class is used in java?
Is a relationship java?
What is j2ee product provider?
How many types of constructors are there in java?
How do you run a java program?
what is meant by proxy server
How long does it take to master java?
What is javaserver pages (jsp)?
Why tomcat is used in java?
how to run servlet program between two computer through internet ?
What are java front end tools?
What every java developer should know?
What is the difference between load() and get()?