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 are j2ee components?
What is included in j2ee?
What is authorization?
What are different modules in spring?
What is considered as a web component?
What is actionform?
Is j2ee and jee same?
What is authorization constraint?
How do I become a java developer?
Describe the file types *.ear, * .jar and *.war?
What is setbounds in java?
What is a java application client?
What is jradiobutton in java?
What is digest authentication?
What is button in java?