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 build file?
Is object a composite data type in java?
What is java naming and directory service?
What is the difference between session bean and entity bean ?
for example we are login into the irctc server from there it will go to the selected bank and deduct amount and come back to the irctc. so if we are developing this in java means will it be run on the same session. but as per my knowledge bank is separate and irctc is separate URL's so it will use two different sessions then how it is maintaining same session through out application and even it uses the payment gateway? how it is working can any one help me on that??
What do you understand by a thin client?
Is java is a technology?
What is architecture neutral in java?
you are to choose between two procedures,both of which copute the minimum value in an array of integers.one procedure returns the smallest integer if its array argument is empty. the other requires a nonempty array.which procedure should you choose and why?
Is java is fully object oriented?
What is the difference between java and core java?
What is the concept of connection pooling?
What is platform independent in java?
What is application component provider?
Is java more difficult than c++?