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 authorization?
What is mean by connection pooling?
What do you understand by business logic?
What is non primitive data type in java?
What should a junior java developer know?
Is java important for my computer?
What is j2ee api?
Is java is a technology?
how to run servlet program between two computer through internet ?
Are java primitives objects?
What are j2ee technologies?
Is advanced java and j2ee same?
What is j2ee component?
How will you explain cdata?
What are struts?