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 setfocusable in java?
What is awt package in java?
What are the components of j2ee?
What is attribute what is asant?
What are different modules in spring?
What are j2ee technologies?
Is downloading java safe?
What is j2ee server?
What is non primitive data type in java?
What is B2B?
Define the struts in the j2ee framework?
Define hashtable in j2ee?
What is java ee sdk?
What are java front end tools?
What is document root?