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 context attribute?
What is j2ee product?
How to create object without using the keyword “new” in java?
What is single tier architecture in java?
What is the latest framework in java?
What are the most important topics in java?
What is j2ee component?
What do you understand by j2ee?
Is j2ee and jee same?
How is java development environment setup?
What are the advantages of object-relational mapping (orm)?
What is webservices in java?
Why do we use j2ee?
What is DDP?
Why java is called robust and secure?