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
Is java ee and j2ee same?
Is java 100 percent pure object oriented?
How will you explain load() and get() methods?
Why java is called robust and secure?
What should a junior java developer know?
What is enterprise information system?
What is ejb container provider?
What is conversational state?
What are the advantages of object-relational mapping (orm)?
What is ebxml?
Why awt is used in java?
Is java part of oracle?
What is a gui in java?
What is actionform?
How do I become a java developer?