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 / sree
if the variable is private.Declare setter and getters to
the variable and access the varible using the setter and
getters in the other class
| Is This Answer Correct ? | 34 Yes | 1 No |
Post New Answer View All Answers
What is j2ee server?
What is document root?
What is client-certificate authentication?
What is java 2 platform, standard edition (j2se)?
Why java is called portable language?
How java is used in web applications?
J2ee is a container centric architecture. Explain.
Why is java important for internet?
Is java more difficult than c++?
What is the best java course?
What is 'applet container' ?
Is java gui dead?
Is advanced java and j2ee same?
What is java ee sdk?
What is j2ee product provider?